unlockDialog: Add user name label below clock
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
This commit is contained in:
parent
ce1b4b9f43
commit
15692b618a
@ -2064,6 +2064,10 @@ $_unlockdialog_shadow: 0px 0px 6px rgba(0, 0, 0, 0.726);
|
|||||||
font-size: 16pt;
|
font-size: 16pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.unlock-dialog-user-name {
|
||||||
|
padding: 12px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.unlock-dialog-notifications-container {
|
.unlock-dialog-notifications-container {
|
||||||
spacing: 6px;
|
spacing: 6px;
|
||||||
width: 30em;
|
width: 30em;
|
||||||
|
@ -421,7 +421,20 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
this._promptBox = new St.BoxLayout({ vertical: true });
|
this._promptBox = new St.BoxLayout({ vertical: true });
|
||||||
stack.add_child(this._promptBox);
|
stack.add_child(this._promptBox);
|
||||||
|
|
||||||
this._clock = new Clock();
|
// Clock
|
||||||
|
this._clock = new St.BoxLayout({ vertical: true });
|
||||||
|
|
||||||
|
let clock = new Clock();
|
||||||
|
this._clock.add_child(clock);
|
||||||
|
|
||||||
|
let nameLabel = new St.Label({
|
||||||
|
style_class: 'unlock-dialog-user-name',
|
||||||
|
text: this._user.get_real_name(),
|
||||||
|
x_expand: true,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
});
|
||||||
|
this._clock.add_child(nameLabel);
|
||||||
|
|
||||||
stack.add_child(this._clock);
|
stack.add_child(this._clock);
|
||||||
this._showClock();
|
this._showClock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user