diff options
| author | Mark Levedahl <mlevedahl@gmail.com> | 2025-05-21 16:31:14 -0400 |
|---|---|---|
| committer | Mark Levedahl <mlevedahl@gmail.com> | 2025-07-18 23:48:34 -0400 |
| commit | ed7d2af78cd4cb8c9a8db4f2f60f56101d9439f8 (patch) | |
| tree | 7673f990f5ab36c5804f7a3fd2e60cdab6b3bf44 | |
| parent | 13df401e3ecd0673eee70bd4d5e0247edf29db0f (diff) | |
| download | git-ed7d2af78cd4cb8c9a8db4f2f60f56101d9439f8.tar.gz | |
git-gui: always use themed widgets from ttk
git-gui optionally uses themed ui elements from ttk, but the full set of
ttk ui elements is always available with Tk 8.6. Keeping code making
ttk use optional increases maintenance burden for no benefit. Let's use
ttk always, allowing removal of alternate code paths in subsequent
patches.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
| -rwxr-xr-x | git-gui.sh | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/git-gui.sh b/git-gui.sh index d395634caf..a484083bcd 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -913,15 +913,11 @@ proc apply_config {} { } global use_ttk NS - set use_ttk 0 - set NS {} - if {$repo_config(gui.usettk)} { - set use_ttk 1 - set NS ttk - bind [winfo class .] <<ThemeChanged>> [list InitTheme] - pave_toplevel . - color::sync_with_theme - } + set use_ttk 1 + set NS ttk + bind [winfo class .] <<ThemeChanged>> [list InitTheme] + pave_toplevel . + color::sync_with_theme global comment_string set comment_string [get_config core.commentstring] |
