[gnome-shell/gbsneto/new-lock-screen-part2: 32/56] unlockDialog: Blur	background
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 32/56] unlockDialog: Blur	background
 
- Date: Thu,  9 Jan 2020 17:13:04 +0000 (UTC)
 
commit c6fd98677166f670ff810c70ed43cc0740508450
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jan 7 16:43:35 2020 -0300
    unlockDialog: Blur background
    
    Add a 200px blur with a 55% brightness to the unlock dialog
    background.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
 js/ui/unlockDialog.js | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index c3d0b17719..607766175f 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -16,6 +16,9 @@ const IDLE_TIMEOUT = 2 * 60;
 
 const SCREENSAVER_SCHEMA = 'org.gnome.desktop.screensaver';
 
+const BLUR_BRIGHTNESS = 0.55;
+const BLUR_RADIUS = 200;
+
 const SUMMARY_ICON_SIZE = 48;
 
 var NotificationsBox = GObject.registerClass({
@@ -414,6 +417,11 @@ var UnlockDialog = GObject.registerClass({
         this._bgManagers.push(bgManager);
 
         this._backgroundGroup.add_child(widget);
+
+        widget.add_effect(new Shell.BlurEffect({
+            brightness: BLUR_BRIGHTNESS,
+            blur_radius: BLUR_RADIUS,
+        }));
     }
 
     _updateBackgrounds() {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]