Commit
40ca78dc3748fbb996969a906561ca0726e7ac42
gitk: move UI for generic colors above diff colors
The selection and link colors apply not only to the diff panel, but also to the the commit list. Move these right after the generic background and text color options. The color for marked lines is only used in the diff panel, hence, leave it below the diff color options. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Johannes Sixt <j6t@kdbg.org> · 2026-08-09 16:05 UTC
1 file changed,
+6
−6
modified gitk
| @@ -11840,6 +11840,12 @@ proc prefspage_colors {notebook} { | |||
| 11840 | 11840 | fg fgcolor {} \ | |
| 11841 | 11841 | [mc "Main text"] \ | |
| 11842 | 11842 | [mc "choose main text color"] \ | |
| 11843 | + | selbg selectbgcolor {} \ | |
| 11844 | + | [mc "Selected text background"] \ | |
| 11845 | + | [mc "choose background color of selected text"] \ | |
| 11846 | + | linkfg linkfgcolor {} \ | |
| 11847 | + | [mc "Link text"] \ | |
| 11848 | + | [mc "choose color of link text"] \ | |
| 11843 | 11849 | diffold diffcolors 0 \ | |
| 11844 | 11850 | [mc "Old line text"] \ | |
| 11845 | 11851 | [mc "choose text color of old lines"] \ | |
| @@ -11858,12 +11864,6 @@ proc prefspage_colors {notebook} { | |||
| 11858 | 11864 | markbg markbgcolor {} \ | |
| 11859 | 11865 | [mc "Marked line background"] \ | |
| 11860 | 11866 | [mc "choose background color of marked lines"] \ | |
| 11861 | - | selbg selectbgcolor {} \ | |
| 11862 | - | [mc "Selected text background"] \ | |
| 11863 | - | [mc "choose background color of selected text"] \ | |
| 11864 | - | linkfg linkfgcolor {} \ | |
| 11865 | - | [mc "Link text"] \ | |
| 11866 | - | [mc "choose color of link text"] \ | |
| 11867 | 11867 | ] | |
| 11868 | 11868 | ||
| 11869 | 11869 | foreach {uielem colorvar idx label title} $coloruielems { | |