[Lock Screen] Don't use black shadows with black text

Summary:
BUG: 413537
FIXED-IN: 5.17.2

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24997
wilder-5.17
Filip Fila 6 years ago
parent 7cb598801c
commit d029fb058c
  1. 4
      lookandfeel/contents/lockscreen/LockScreenUi.qml
  2. 3
      sddm-theme/Main.qml

@ -30,9 +30,11 @@ import "../components"
PlasmaCore.ColorScope {
id: lockScreenUi
// If we're using software rendering, draw outlines instead of shadows
// See https://bugs.kde.org/show_bug.cgi?id=398317
readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software
readonly property bool lightBackground: Math.max(PlasmaCore.ColorScope.backgroundColor.r, PlasmaCore.ColorScope.backgroundColor.g, PlasmaCore.ColorScope.backgroundColor.b) > 0.5
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
@ -175,7 +177,7 @@ PlasmaCore.ColorScope {
radius: 6
samples: 14
spread: 0.3
color: "black" // matches Breeze window decoration and desktopcontainment
color: lockScreenUi.lightBackground ? PlasmaCore.ColorScope.backgroundColor : "black" // black matches Breeze window decoration and desktopcontainment
Behavior on opacity {
OpacityAnimator {
duration: 1000

@ -37,6 +37,7 @@ PlasmaCore.ColorScope {
readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
readonly property bool lightBackground: Math.max(PlasmaCore.ColorScope.backgroundColor.r, PlasmaCore.ColorScope.backgroundColor.g, PlasmaCore.ColorScope.backgroundColor.b) > 0.5
width: 1600
height: 900
@ -130,7 +131,7 @@ PlasmaCore.ColorScope {
radius: 6
samples: 14
spread: 0.3
color: "black" // matches Breeze window decoration and desktopcontainment
color: root.lightBackground ? PlasmaCore.ColorScope.backgroundColor : "black" // black matches Breeze window decoration and desktopcontainment
Behavior on opacity {
OpacityAnimator {
duration: 1000

Loading…
Cancel
Save