Bug 470049 - Inconsistent syntax highlighting while using non-default ksyntaxhighlighting theme
Summary: Inconsistent syntax highlighting while using non-default ksyntaxhighlighting ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: 5.11.230401
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-20 15:33 UTC by CEQ
Modified: 2023-05-21 09:20 UTC (History)
1 user (show)

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


Attachments
Examples of Observed vs Expected, captured using the Catppuccin Mocha theme (438.01 KB, application/gzip)
2023-05-20 15:33 UTC, CEQ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CEQ 2023-05-20 15:33:31 UTC
Created attachment 159138 [details]
Examples of Observed vs Expected, captured using the Catppuccin Mocha theme

SUMMARY
The syntax highlight colors are inconsistent when compared to Kate while using a non-default editor color-scheme 

STEPS TO REPRODUCE
1.  Set Editor Colorscheme to something non default (ex: Catppuccin Mocha)
2. Open a C++ or Qml file in Kate & KDevelop
3. Compare results

OBSERVED RESULT
They are different (See attachments)

EXPECTED RESULT
They should match (See attachments)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
While this was tested using Catppuccin Mocha, these can be seen on any other theme aswell
Comment 1 Igor Kushnir 2023-05-21 09:20:17 UTC
KDevelop supports semantic colors. Identifiers are highlighted based on their role in the file's language. For example, base class's member functions are highlighted differently from the current class's member functions. Different colors in this particular case can be useful. I have found a bug in KDevelop thanks to them. Semantic colors are configurable in KDevelop settings:
1) select "From Editor Theme" in the "Global colors" combobox in the "Language Support" tab;
2) go to the Editor=>Color Themes tab, select Theme Editor tab, then the Highlighting Text Styles tab, select "KDevelop/Semantic Colors" item in the Highlight combobox, then configure the colors to your liking.