on xenial help sign in
Blurred user background in app drawer

A simple eyecandy workaround for the not working blur effect.

commit3b7962cd56a543edd65fd52e22ede00c22fbebd5 authorChristian <christian-pauly@posteo.de> dateFri 19 Apr 2019, 07:44 (7 years ago) parenta4366c2
1 file changed+22
qml/Launcher/Drawer.qml+22
qml/Launcher/Drawer.qml+22
@@ -21,6 +21,8 @@ import Utils 0.1
2121import "../Components"
2222import Qt.labs.settings 1.0
2323import GSettings 1.0
24+import AccountsService 0.1
25+import QtGraphicalEffects 1.0
2426
2527FocusScope {
2628 id: root
@@ -72,6 +74,26 @@ FocusScope {
7274 anchors.fill: parent
7375 color: "#111111"
7476 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+ }
7597
7698 MouseArea {
7799 id: drawerHandle