]> Kevux Git Server - rit/commit
gitk: set config dialog color swatches in one place
authorMark Levedahl <mlevedahl@gmail.com>
Thu, 5 Jun 2025 16:23:37 +0000 (12:23 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Thu, 17 Jul 2025 03:01:51 +0000 (23:01 -0400)
commit100f597b8833c55bdac70e9c2066d9ee36e0b6cb
tree91774b78861b4218d0dbe6565c2ff482fdc62b6c
parent3e4314387b0affaca5353bb3ada8e93f2722fab9
gitk: set config dialog color swatches in one place

gitk's color selection dialog uses a number of "label" widgets to show
the current value of each selectable color. This uses the -background
color property of label widgets, and this property is overwritten when
the full ui color set is refreshed. The swatch colors are set
individually using code passed into the chooser dialog, so there is no
common routine to set all after updating the global ui colors.

Let's replace this with a single routine that does set all swatches,
removing a key impediment to restoring the ui colors if the dialog is
cancelled.

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