on xenial help sign in
Merge pull request #129 from ChristianPauly/patch-1

Blurred user background in app drawer

commit7fd6cacb0d13643873a51bf0bb9edbc8c92ddd5c authorRodney <6557070+dobey@users.noreply.github.com> dateFri 31 May 2019, 09:31 (7 years ago) parent9290b68090f409
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 color: "#111111"
7375 opacity: 0.99
7476
77+ Image {
78+ id: background
79+ anchors.fill: parent
80+ source: AccountsService.backgroundFile
81+ fillMode: Image.PreserveAspectCrop
82+ }
83+
84+ FastBlur {
85+ anchors.fill: background
86+ source: background
87+ radius: 128
88+ }
89+
90+ // Workaround for images with fastblur can't use opacity
91+ Rectangle {
92+ anchors.fill: background
93+ color: parent.color
94+ opacity: 0.67
95+ }
96+
7597 MouseArea {
7698 id: drawerHandle
7799 anchors {