Bug 494599

Summary: Highlight when selected text matches other texts for Breeze Dark has low visibility
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: EpicTux123 <EpicTux123>
Component: themeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=495070
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: matched text highlighting

Description EpicTux123 2024-10-12 15:02:39 UTC
Created attachment 174741 [details]
matched text highlighting

When using default Breeze Dark theme on Kate, texts that match the selected text have low visibility. In this case, the ones that match are the problematic ones, because they have green background with blue text, which makes it harder to see.

The problem is probably the fact that the matched text turns blue after being selected, instead of remaining white like the first one that was selected.
Comment 1 Christoph Cullmann 2024-10-19 19:03:33 UTC
True.
Comment 2 Christoph Cullmann 2024-10-19 19:04:04 UTC
SearchHighlight leads to bad contrast.
Comment 3 Bug Janitor Service 2024-10-19 19:11:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/667
Comment 4 Waqar Ahmed 2024-10-19 20:21:19 UTC
Git commit fbc3eacc344b201cc584cd9b976163841ddf67a3 by Waqar Ahmed, on behalf of Christoph Cullmann.
Committed on 19/10/2024 at 20:18.
Pushed by cullmann into branch 'master'.

better contrast for search highlighting

M  +2    -2    data/themes/breeze-dark.theme

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/fbc3eacc344b201cc584cd9b976163841ddf67a3
Comment 5 EpicTux123 2024-10-19 20:39:57 UTC
Thanks for the fix.

However, I believe the new color (#414857) does not have a very good contrast since the background is dark. I think a new color should be considered for better and fast eye-catch on highlighted matches.
Comment 6 Christoph Cullmann 2024-10-19 20:43:06 UTC
(In reply to EpicTux123 from comment #5)
> Thanks for the fix.
> 
> However, I believe the new color (#414857) does not have a very good
> contrast since the background is dark. I think a new color should be
> considered for better and fast eye-catch on highlighted matches.

If you have a concrete proposal, that can be tried. But I don't think a much lighter more catchy color is easy to have that will not clash with the highlighting colors.
Comment 7 Christoph Cullmann 2024-10-19 20:57:23 UTC
if you have a improved variant, please try to create some before/after shots like in https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/667
Comment 8 Waqar Ahmed 2024-10-19 21:28:49 UTC
The main issue is solved so the bug can stay closed. MRs are welcome if you have a better color idea.