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
This commit is contained in:
parent
15b59414d6
commit
5d88729fc1
@ -16,6 +16,9 @@ const IDLE_TIMEOUT = 2 * 60;
|
|||||||
|
|
||||||
const SCREENSAVER_SCHEMA = 'org.gnome.desktop.screensaver';
|
const SCREENSAVER_SCHEMA = 'org.gnome.desktop.screensaver';
|
||||||
|
|
||||||
|
const BLUR_BRIGHTNESS = 0.55;
|
||||||
|
const BLUR_RADIUS = 200;
|
||||||
|
|
||||||
const SUMMARY_ICON_SIZE = 48;
|
const SUMMARY_ICON_SIZE = 48;
|
||||||
|
|
||||||
var NotificationsBox = GObject.registerClass({
|
var NotificationsBox = GObject.registerClass({
|
||||||
@ -426,6 +429,11 @@ var UnlockDialog = GObject.registerClass({
|
|||||||
this._bgManagers.push(bgManager);
|
this._bgManagers.push(bgManager);
|
||||||
|
|
||||||
this._backgroundGroup.add_child(widget);
|
this._backgroundGroup.add_child(widget);
|
||||||
|
|
||||||
|
widget.add_effect(new Shell.BlurEffect({
|
||||||
|
brightness: BLUR_BRIGHTNESS,
|
||||||
|
blur_radius: BLUR_RADIUS,
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateBackgrounds() {
|
_updateBackgrounds() {
|
||||||
|
Loading…
Reference in New Issue
Block a user