Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Remove blur on phones and tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
capsia37 committed Aug 5, 2021
1 parent 8c3419f commit 49382ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qml/Greeter/CoverPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Showable {
property alias blurAreaWidth: loginBoxEffects.width
property alias blurAreaX: loginBoxEffects.x
property alias blurAreaY: loginBoxEffects.y
property alias blurRadius: loginBoxBlur.radius

readonly property real showProgress: MathUtils.clamp((width - Math.abs(x + launcherOffset)) / width, 0, 1)

Expand Down Expand Up @@ -119,10 +120,10 @@ Showable {
}

FastBlur {
id: loginBoxBlur
visible: !draggable
anchors.fill: effectSource
source: effectSource
radius: 64
transparentBorder: true
}

Expand Down
1 change: 1 addition & 0 deletions qml/Greeter/GreeterView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ FocusScope {
blurAreaWidth: loginList.width + units.gu(3)
blurAreaX: loginList.x - units.gu(1.5)
blurAreaY: loginList.boxVerticalOffset + loginList.y - units.gu(3)
blurRadius: root.usageMode != "phone" && root.usageMode != "tablet" ? 64 : 0

background: root.background
backgroundSourceSize: root.backgroundSourceSize
Expand Down

0 comments on commit 49382ef

Please sign in to comment.