Bug 498086

Summary: Dark mode does not work properly on GNOME
Product: [Applications] kate Reporter: creatorsmithmdt
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, waqar.17a
Priority: NOR    
Version First Reported In: 24.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A screenshot of the launch view of kate, showing some of the outlined issues.
A particularly bad pop up showing both issues.
A screenshot of the launch view of kate, showing the now correct colors.

Description creatorsmithmdt 2024-12-31 12:56:03 UTC
Created attachment 176993 [details]
A screenshot of the launch view of kate, showing some of the outlined issues.

SUMMARY
When setting dark mode in the gnome settings, Kate attempts to follow the system theme but does not do so properly. In particular, some text is set as black on a dark background, while other boxes remain entirely white.

STEPS TO REPRODUCE
1. Set appearance to dark in gnome settings
2. Set Kate to follow system theme

OBSERVED RESULT
Text is discolored and some boxes are white.

EXPECTED RESULT
No black text on grey backgrounds, no white boxes that don't match the rest of the theming.

SOFTWARE/OS VERSIONS
Linux 6.12.4-1518.native
Clear Linux (Build 42790)
GNOME 47
KDE Frameworks Version: 6.7.0
Qt Version: Version 6.8.0 (built against 6.7.3)
Wayland
Comment 1 creatorsmithmdt 2024-12-31 12:56:34 UTC
Created attachment 176994 [details]
A particularly bad pop up showing both issues.
Comment 2 Waqar Ahmed 2024-12-31 13:58:24 UTC
Does it work better if you change the style/colors from Settings menu?
Comment 3 creatorsmithmdt 2024-12-31 14:04:52 UTC
(In reply to Waqar Ahmed from comment #2)
> Does it work better if you change the style/colors from Settings menu?

Nope, same problems when manually setting the theme to Breeze Dark.
Comment 4 Christoph Cullmann 2025-01-04 16:56:19 UTC
I think that only works properly with this fix

https://invent.kde.org/frameworks/kiconthemes/-/commit/df1e75fc8a248040235ac1412e0bf6c55bff2a9f

And that is only in Frameworks 6.8 and upwards.
Comment 5 creatorsmithmdt 2025-01-18 15:31:59 UTC
Fixed as of Clear Linux build 42870. (May have been earlier, I just noticed now.) Presumably the aforementioned upstream fix made its way to a distribution release.
For posterity, here is the working version information:
Kate: 24.12.1
Linux: 6.12.8-1530.native
Clear Linux (Build 42870)
GNOME 47
KDE Frameworks: 6.10.0
Qt: Using 6.8.0 and built against 6.8.0
Wayland
Comment 6 creatorsmithmdt 2025-01-18 15:32:51 UTC
Created attachment 177510 [details]
A screenshot of the launch view of kate, showing the now correct colors.
Comment 7 Christoph Cullmann 2025-01-18 15:35:23 UTC
Nice that this works now!