]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: use config variables to define and load a theme
authorMark Levedahl <mlevedahl@gmail.com>
Mon, 22 Sep 2025 14:36:41 +0000 (10:36 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Tue, 30 Sep 2025 00:53:21 +0000 (20:53 -0400)
commit8ccb2d4a762a0ea39c7f1df0712efbab3b7a4883
tree281bc034ad78dc9801c19d849d5bb7cfe7ef524c
parentfe2005e7236a4e430ccf561376b7c14c33179064
gitk: use config variables to define and load a theme

gitk uses themed tk, but has no capability to alter the theme defined
by Tk. While there are documented ways to install other themes, and
to make one the default, these methods are obscure at best. Instead,
let's offer two config variables:

- theme  this is the name of the theme to use, and must be available.
- themeloader - this is the full pathname of a tcl script that
  will load one or more themes into the Tk namespace.

By default, theme is set to the theme active when Tk is started, and
themeloader = {}.  These variables must be defined to something else to
have any user visible effect.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
gitk