Skip to content

Commit 2faa6cd

Browse files
j6tpaulusmack
authored andcommitted
gitk: Un-hide selection in areas with non-default background color
The recently introduced background for the tags that highlight added and removed text takes precedence over the background color of the selection. But selected text is more important than the highlighted text. Make the highlighting tags the lowest priority. The same argument holds for the file separator and the highlight of search results. Therefore, make them also low-priority. But search results are a bit more important; therefore, keep them above the other tags. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 113ce12 commit 2faa6cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gitk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,6 +2460,12 @@ proc makewindow {} {
24602460
$ctext tag conf currentsearchhit -back $currentsearchhitbgcolor
24612461
$ctext tag conf wwrap -wrap word -lmargin2 1c
24622462
$ctext tag conf bold -font textfontbold
2463+
# set these to the lowest priority:
2464+
$ctext tag lower currentsearchhit
2465+
$ctext tag lower found
2466+
$ctext tag lower filesep
2467+
$ctext tag lower dresult
2468+
$ctext tag lower d0
24632469

24642470
.pwbottom add .bleft
24652471
if {!$use_ttk} {

0 commit comments

Comments
 (0)