diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index 1d115c7bc..f1ec1bd52 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -2064,6 +2064,10 @@ $_unlockdialog_shadow: 0px 0px 6px rgba(0, 0, 0, 0.726); font-size: 16pt; } +.unlock-dialog-user-name { + padding: 12px 0px; +} + .unlock-dialog-notifications-container { spacing: 6px; width: 30em; diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 4104e855a..52423dd8e 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -421,7 +421,20 @@ var UnlockDialog = GObject.registerClass({ this._promptBox = new St.BoxLayout({ vertical: true }); 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); this._showClock();