[gnome-shell/screen-shield-next: 2/9] ScreenShield: blur and desaturate the screenshield background
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/screen-shield-next: 2/9] ScreenShield: blur and desaturate the screenshield background
- Date: Mon, 6 Aug 2012 19:46:38 +0000 (UTC)
commit 2f990346df145c7f7e9a493a910293551240d0d0
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Aug 3 18:40:11 2012 +0200
ScreenShield: blur and desaturate the screenshield background
The background is the same as the normal desktop, so we blur and
desaturate it to clearly show that it's not the normal system state.
Includes a noticeable slowdown due to GLSL shading and FBO redirection.
https://bugzilla.gnome.org/show_bug.cgi?id=681143
js/ui/screenShield.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 3844a00..38ac04b 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -278,9 +278,10 @@ const ScreenShield = new Lang.Class({
Lang.bind(this, this._onLockScreenKeyRelease));
this._background = Meta.BackgroundActor.new_for_screen(global.screen);
- this._lockScreenGroup.add_actor(this._background);
+ this._background.add_effect(new Clutter.BlurEffect());
+ this._background.add_effect(new Clutter.DesaturateEffect({ factor: 0.6 }));
- // FIXME: build the rest of the lock screen here
+ this._lockScreenGroup.add_actor(this._background);
this._arrow = new St.DrawingArea({ style_class: 'arrow',
reactive: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]