Bug 504905

Summary: Hard to see highlighting
Product: [Applications] okteta Reporter: mdcclxv <mdcclxv>
Component: generalAssignee: Friedrich W. H. Kossebau <kossebau>
Status: REPORTED ---    
Severity: normal CC: kossebau
Priority: NOR    
Version First Reported In: 0.26.21   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot with hard to see bytes

Description mdcclxv 2025-05-28 10:35:25 UTC
Created attachment 181821 [details]
screenshot with hard to see bytes

SUMMARY
Some bytes (non-ASCII ?) are highlighted with a hard to see color when using a dark KDE theme. See attached screenshot. Would be really nice to have an option to disable the highlighting or, better yet, not rely on the system colors but instead have the ability to customize the colors in Okteta.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Friedrich W. H. Kossebau 2025-05-28 11:17:47 UTC
Thanks for the report, good to know about issues users have.

I agree that highlighting should be customizable, actually a plan since the very start, and even more since the Structures tool arrived, for it to even reflect the data types there. Just never got to it besides some plans and drafts. There are some chances I might solve this finally during on-going data type display rework, but early stages still.

In your case though it seems the color scheme you use has some issues:
Okteta uses the defined colors also used for text rendering, in case of byte values matching control characters the value of KColorScheme::ActiveText (which in the color-scheme file is the entry ForegroundActive in the group [Colors:View]) . See also the API documentation on the value: https://api.kde.org/frameworks/kcolorscheme/html/classKColorScheme.html#a177a02c0381f00155148d1032f2aea82a2c2ff027c5cceb21f90730cdb45d9ba1
So any text display where active text is rendered against the normal text background should be equally unreadable. 

What color scheme do you use exactly? Perhaps the author of the scheme could tune that very entry to get some contrast again?
Comment 2 mdcclxv 2025-05-30 12:19:12 UTC
Thanks for the reply.

The theme I'm using is Arc Dark slightly modified  by me. And what you told me did the trick, I've changed the color and the dimmed text is readable now. But ... any chance you could implement an option to turn off the highlighting? I would rather have the text rendered with the same color, I find it easier to read.

Best,
M.