Bug 500764

Summary: Color picker in System Settings shows odd HEX code
Product: [Applications] systemsettings Reporter: Raul <1000.ontheroad>
Component: kcm_colorsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate, noahadvs, tantalising007, uhhadd
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:
Attachments: Choose color dialog. Notice the four digit HEX code and the narrow dropdown menu.

Description Raul 2025-02-26 08:51:57 UTC
Created attachment 178888 [details]
Choose color dialog. Notice the four digit HEX code and the narrow dropdown menu.

SUMMARY
"Choose custom accent color" dialog repeats the last hexadecimal code. It shows '#RRGGBBBB' when it should be just '#RRGGBB'.

But, from that point, if you choose an outside color using the color picker, it shows the correct format until you close and restart System Settings.

Also, the dropdown code menu (HEX/RGB/HSL/HSV) is rather narrow; but I don't know if I should open another bug/request report.

STEPS TO REPRODUCE
1. Open System Settings.
2. Go Colors & Themes > Colors.
2. Click the Color Picker button (up right, grey last one).
3. HEX code is buggy. Choose a color with the Color Picker button and it goes back to normal.

OBSERVED RESULT
Four digits HEX code, the fourth one is just the third one repeated (e.g. '#a5ee7171').

EXPECTED RESULT
Normal three digits HEX code, like '#a5ee71'

SOFTWARE/OS VERSIONS
Linux: Gentoo, kernel 6.12.16
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Wayland 1.23.1
nVidia RTX 3060 (nvidia-drivers 550.144.03)
Comment 1 Bug Janitor Service 2025-02-26 09:33:36 UTC
Thank you for the bug report!

Please note that Plasma 6.2.5 will not be supported for much longer by KDE; supported versions are 5.27., and 6.3 or newer.

Please upgrade to the latest version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.
Comment 2 Nate Graham 2025-02-26 20:00:12 UTC
Just fixed by Christoph Wolk for Plasma 6.4.0 with https://invent.kde.org/plasma/plasma-workspace/-/commit/5743e0a177ba7a72ab9907bd3e39461747617c3c!