on xenial help sign in
Blurred user background in app drawer
3b7962cChristian
qml/Launcher/Drawer.qml+22
@@ -21,6 +21,8 @@ import Utils 0.1
21import "../Components"
21import "../Components"
22import Qt.labs.settings 1.0
22import Qt.labs.settings 1.0
23import GSettings 1.0
23import GSettings 1.0
24+import AccountsService 0.1
25+import QtGraphicalEffects 1.0
24
26
25FocusScope {
27FocusScope {
26 id: root
28 id: root
@@ -72,6 +74,26 @@ FocusScope {
72 anchors.fill: parent
74 anchors.fill: parent
73 color: "#111111"
75 color: "#111111"
74 opacity: 0.99
76 opacity: 0.99
77+
78+ Image {
79+ id: background
80+ anchors.fill: parent
81+ source: AccountsService.backgroundFile
82+ fillMode: Image.PreserveAspectCrop
83+ }
84+
85+ FastBlur {
86+ anchors.fill: background
87+ source: background
88+ radius: 128
89+ }
90+
91+ // Workaround for images with fastblur can't use opacity
92+ Rectangle {
93+ anchors.fill: background
94+ color: parent.color
95+ opacity: 0.67
96+ }
75
97
76 MouseArea {
98 MouseArea {
77 id: drawerHandle
99 id: drawerHandle