Commit 3bdbf2ff authored by Krešimir Čohar's avatar Krešimir Čohar

[sddm-theme/lock screen] Render shadows before (and below) labels

Test Plan:
Before: {F6640823}
After: {F6640826}

Reviewers: #vdg, ngraham, filipf

Reviewed By: #vdg, ngraham

Subscribers: plasma-devel

Tags: #plasma

Maniphest Tasks: T10325

Differential Revision: https://phabricator.kde.org/D19366
parent 895aee56
......@@ -32,6 +32,19 @@ Item {
width: clock.implicitWidth
height: clock.implicitHeight
DropShadow {
id: clockShadow
visible: !softwareRendering
anchors.fill: clock
source: clock
horizontalOffset: 0
verticalOffset: 2
radius: 14
samples: 32
spread: 0.3
color: ColorScope.backgroundColor
}
ColumnLayout {
id: clock
Label {
......@@ -55,14 +68,4 @@ Item {
interval: 1000
}
}
layer.enabled: !softwareRendering
layer.effect: DropShadow {
horizontalOffset: 0
verticalOffset: 2
radius: 14
samples: 32
spread: 0.3
color: ColorScope.backgroundColor
}
}
......@@ -147,6 +147,19 @@ Item {
"
}
DropShadow {
id: usernameShadow
visible: !softwareRendering
anchors.fill: usernameDelegate
source: usernameDelegate
horizontalOffset: 0
verticalOffset: 1
radius: 12
samples: 32
spread: 0.35
color: ColorScope.backgroundColor
}
PlasmaComponents.Label {
id: usernameDelegate
anchors {
......@@ -162,16 +175,6 @@ Item {
horizontalAlignment: Text.AlignHCenter
//make an indication that this has active focus, this only happens when reached with keyboard navigation
font.underline: wrapper.activeFocus
layer.enabled: !softwareRendering
layer.effect: DropShadow {
horizontalOffset: 0
verticalOffset: 1
radius: 12
samples: 32
spread: 0.35
color: ColorScope.backgroundColor
}
}
MouseArea {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment