Bug 476668

Summary: Black text & icons on dark backgrounds on lock and login screen themes
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Global Theme packagesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bharadwaj.raju777, kde, nate, plasma-bugs, sam
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=474377
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: picture1
picture2

Description Patrick Silva 2023-11-07 12:12:44 UTC
STEPS TO REPRODUCE
1. set a dark background to the screenlocker
2. lock the screen
3. 

OBSERVED RESULT
texts - time/date, username, labels of the buttons - are barely readable

EXPECTED RESULT
good readbility

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Graphics Platform: Wayland
Comment 1 Bharadwaj Raju 2023-11-07 17:26:26 UTC
Can you add a screenshot? I tested with Breeze, Breeze Dark, and Breeze Twilight, and a very dark background. All the text for me is white.
Comment 2 Patrick Silva 2023-11-07 22:01:19 UTC
https://imgur.com/a/qFOJjXg
Comment 3 Patrick Silva 2023-11-07 23:29:25 UTC
Created attachment 162938 [details]
picture1
Comment 4 Patrick Silva 2023-11-07 23:29:51 UTC
Created attachment 162939 [details]
picture2
Comment 5 Bharadwaj Raju 2023-11-08 03:15:55 UTC
Thanks. Is this standard Breeze?
Comment 6 Patrick Silva 2023-11-08 03:20:25 UTC
It's breeze with breeze classic color scheme. I get the same result with breeze and breeze light color scheme.
Comment 7 Patrick Silva 2023-11-08 12:11:44 UTC
I installed updates on neon unstable a few minutes ago and now this bug also affects the SDDM.
Comment 8 Nate Graham 2023-11-08 21:05:55 UTC
Cannot reproduce in a kdesrc-build session. The text is always white for me no matter what color I set the lock screen wallpaper to.

Maybe there's a difference when using only distro-provided packages though. CCing David Redondo who worked on the related change to make all of this stuff a QML module.
Comment 9 David Redondo 2023-11-09 08:21:56 UTC
This problem seems to affect Neon packages and while the exact reason is unknown it is caused by enabling lto
https://invent.kde.org/frameworks/kirigami/-/merge_requests/1370
Comment 10 Harald Sitter 2023-11-10 12:23:08 UTC
Git commit 86d86d4d102eeb9b825707a7740705cbe9cdae9c by Harald Sitter.
Committed on 10/11/2023 at 13:21.
Pushed by sitter into branch 'master'.

compile without LTO

KDE neon for example has LTO enabled in their default flags and that
resulted in the text of the lockscreen being colored incorrectly. it's
unclear if it is a compiler bug or somewhere else. at any rate we
probably don't benefit much from LTO in plugins anyway

M  +7    -0    CMakeLists.txt

https://invent.kde.org/frameworks/kirigami/-/commit/86d86d4d102eeb9b825707a7740705cbe9cdae9c