Bug 469803

Summary: Code Browser not switching to dark theme
Product: [Applications] kdevelop Reporter: Marie Kalouguine <marie.kalouguine>
Component: UI: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: minor CC: igorkuo
Priority: NOR    
Version First Reported In: 5.7.211203   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.10.221200
Sentry Crash Report:

Description Marie Kalouguine 2023-05-15 12:47:43 UTC
SUMMARY
The "code browser" view stays black-on-white, independently of the global kdevelop color theme. Same with tooltip view, which seems to be the same HTML inclusion. This may not seem very important, but that white background is quite aggressive to the eyes, in the middle of a breeze-dark environment.

I saw this issue discussed a few years ago on reddit, saying that this color theme is currently hard-coded in HTML (legacy code apparently), but there is no follow-up: https://www.reddit.com/r/kde/comments/a6zmrf/kdevelop_change_tooltip_and_code_browser_color/

STEPS TO REPRODUCE
1. Open kdevelop settings
2. Set color theme to "Breeze Dark"
3. Open Code Browser or Tooltip View by clicking on a variable or function in C code

OBSERVED RESULT
The opened view appears on white background, contrasting with the rest of the IDE

EXPECTED RESULT
View color theme follows global color theme, and/or is adjustable manually

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Marie Kalouguine 2023-09-11 14:39:37 UTC
I don't know when it was fixed exactly, but on Kubuntu 22.04 you can install version 5.11.230403 (23.04.3) of Kdevelop via snap (https://snapcraft.io/kdevelop), and the code browser has a dark theme in this one. It looks great, so I'm updating this bug as resolved.
Comment 2 Igor Kushnir 2023-09-11 17:21:26 UTC
Martin Seher and Milian Wolff fixed this bug in https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/370