screenShield: Add box-shadow to the shield

According to the mockups, the screen shield should cast a shadow
when lifted.
This commit is contained in:
Florian Müllner 2012-09-13 18:45:55 +02:00
parent ed82c3763c
commit 2a8625ffae
2 changed files with 7 additions and 1 deletions

View File

@ -2196,6 +2196,11 @@ StButton.popup-menu-item:insensitive {
/* Screen shield */ /* Screen shield */
.screen-shield-background {
background: black;
box-shadow: 0px 4px 8px rgba(0,0,0,0.9);
}
#lockDialogGroup { #lockDialogGroup {
background: #2e3436 url(noise-texture.png); background: #2e3436 url(noise-texture.png);
background-repeat: repeat; background-repeat: repeat;

View File

@ -366,7 +366,8 @@ const ScreenShield = new Lang.Class({
name: 'lockScreenContents' }); name: 'lockScreenContents' });
this._lockScreenContents.add_constraint(new Layout.MonitorConstraint({ primary: true })); this._lockScreenContents.add_constraint(new Layout.MonitorConstraint({ primary: true }));
this._background = Meta.BackgroundActor.new_for_screen(global.screen); this._background = new St.Bin({ style_class: 'screen-shield-background',
child: Meta.BackgroundActor.new_for_screen(global.screen) });
this._lockScreenGroup.add_actor(this._background); this._lockScreenGroup.add_actor(this._background);
this._lockScreenGroup.add_actor(this._lockScreenContents); this._lockScreenGroup.add_actor(this._lockScreenContents);