This patch fixes the clock's black shadow when the text is black, which happens with some Plasma themes and color schemes.
BUG: 413537
FIXED-IN: 5.17.2
ngraham | |
ndavis |
Plasma | |
VDG |
This patch fixes the clock's black shadow when the text is black, which happens with some Plasma themes and color schemes.
BUG: 413537
FIXED-IN: 5.17.2
To test either:
For the login screen you'll have to do the same or similar as above and then use the sync function in the sddm kcm.
Before:
After:
No Linters Available |
No Unit Test Coverage |
Buildable 18245 | |
Build 18263: arc lint + arc unit |
lookandfeel/contents/lockscreen/LockScreenUi.qml | ||
---|---|---|
37 | Would it make more sense to use hsvValue or hslLightness? |
lookandfeel/contents/lockscreen/LockScreenUi.qml | ||
---|---|---|
37 | Maybe, I just copy pasted this from the wallpaper fader: https://github.com/KDE/plasma-workspace/blob/master/lookandfeel/contents/components/WallpaperFader.qml#L39 An similar check can be found in the logout screen as well: https://github.com/KDE/plasma-workspace/blob/master/lookandfeel/contents/logout/Logout.qml#L104 |
Admittedly this doesn't look super fortuate either when the wallpaper is darker:
But legibility is really poor unless we do something:
Another thing we could do is have the text be white when there is no lock screen UI:
That's kind of distracting though.
I think we have a greater conceptual problem here. If the lock and login screens are able to display arbitrary text colors from the user's color scheme, we will never be rid of these kinds of problems. I see two practical solutions:
Otherwise we will be playing whack-a-mole forever, and will have to live with really ugly results for many cases (e.g. the case where the blurred wallpaper becomes lightened and the text is dark).
Yeah there is a conceptual issue here we need to look into solving. IMO we should just always have white UI elements and the background dimmed.
As for solutions, I've already looked into hardcoding everything as white (+bg dimmed). It's easy to fix the wallpaper fader and labels, but unfortunately I think it's a dead end because the rest would involve porting PlasmaCore.IconItem to Kirigami.Icon and PC2.ToolButton to QQC2.ToolButton. Those two would have to be used because the former don't have a color property that can be set (the PC3.ToolButton has one but it doesn't work). I would assume the ports would cause objection since they would entail using desktop components in the shell.
Regardless of what we come up with, I made this as a small fix for 5.17 while we rethink things for 5.18 and further.
Or if there is no complementary text color in the color scheme, just create one based on the text color's brightness?