Bug 434690

Summary: It;s not possible to set the color of the mini-map location highlighting
Product: [Applications] kate Reporter: popov895 <popov895>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, popov895
Priority: NOR    
Version: 20.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Mini-map location highlighting

Description popov895 2021-03-20 21:22:28 UTC
Created attachment 136895 [details]
Mini-map location highlighting

SUMMARY

I have not found a way how to change the color of the mini-map location highlighting. It's always blue, regardless of editor or system color scheme. I believe it should depend on the "Selection Background" color of the system color scheme or on the "Selected Text" color of the editor color scheme.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: openSUSE Tumbleweed 20210318 / X11
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Comment 1 Bug Janitor Service 2021-03-25 12:12:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/129
Comment 2 Jan Paul Batrina 2021-03-26 06:11:37 UTC
Git commit bdd195792b7752e4c5a0ff74cb5b01a6accee517 by Jan Paul Batrina.
Committed on 25/03/2021 at 11:31.
Pushed by sars into branch 'master'.

Use QPalette::highlight for the scrollbar minimap slider

Previously, QPalette::link() was used which is the color for hyperlinks.
Most themes set this to a shade of blue, so the slider will almost
always be blue even when, for example, the main color
of a theme is green.

The selection highlight color was chosen because it is also the color
used for indicating the active tab and is, generally, often attuned
to a theme's main color.

M  +1    -1    src/view/kateviewhelpers.cpp

https://invent.kde.org/frameworks/ktexteditor/commit/bdd195792b7752e4c5a0ff74cb5b01a6accee517