Bug 484952 - Kirigami Theme background colors can get lighter if system background color is lowered, leading to low-contrast text
Summary: Kirigami Theme background colors can get lighter if system background color i...
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: Master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 01:40 UTC by Sin Jeong-hun
Modified: 2024-09-25 18:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (104.87 KB, image/png)
2024-04-03 01:40 UTC, Sin Jeong-hun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sin Jeong-hun 2024-04-03 01:40:48 UTC
Created attachment 168076 [details]
screenshot

SUMMARY
When the "Window Background" colour is lower than 25 (each of RGB), list item's background gets brighter, making it almost impossible to read the text.

STEPS TO REPRODUCE
1. Go to System Settings -> Colours. Create a copy of "Breeze Dark". Click the edit button and change the Window Background value to 24 (#191919)
2. Open Discover -> Settings.
3. 

OBSERVED RESULT
For values higher than 25, the background colour is darker than the text. But for values lower than 25, the background colour gets brighter.

EXPECTED RESULT
The background of list get darker, not brighter.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Comment 1 cwo 2024-09-23 16:54:58 UTC
Can reproduce on Plasma master.

This specifically seems to apply to things using Kirigami.Theme.backgroundColor, through SwipeListItem (e.g. Discover sources page or kdeconnect app plugin list) or directly (Kirigami Gallery ListView). Also the Elisa header bar; not quite sure which color is used there. I haven't been able to reproduce it in QtWidgets applications or elsewhere in Kirigami applications I tested.