[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
wilder-broken-krunner
Krešimir Čohar 7 years ago
parent 895aee564f
commit 3bdbf2ff87
  1. 23
      lookandfeel/contents/components/Clock.qml
  2. 23
      lookandfeel/contents/components/UserDelegate.qml

@ -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 {

Loading…
Cancel
Save