Bug 508041

Summary: Unsetting background color in custom theme doesn't work
Product: [Applications] kate Reporter: Coen <coen>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screen recording of how to reproduce the bug

Description Coen 2025-08-09 07:02:33 UTC
Created attachment 183901 [details]
Screen recording of how to reproduce the bug

SUMMARY
Unsetting background color in custom theme doesn't work

STEPS TO REPRODUCE
1. Create copy of existing theme (I used Atom One Light)
2. Go to Theme Editor tab
3. Go to Highlighting Text Styles tab
4. Unset the background color of an item (I tried to unset Alerts > Alert Level 1 (Sources/Rust))
5. It now shows 'unset' as the background color
6. Click apply, it changes to black #000000

OBSERVED RESULT
The background color changes to #000000 when saving.

EXPECTED RESULT
The background color to be unset.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
I ❤️ Kate