israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.99k stars 395 forks source link

Expose separate track color in theme #377

Open bszollosinagy opened 1 year ago

bszollosinagy commented 1 year ago

Make the choice of color for the Slider tracker, and the unused portion of the Progress Bar and Meter more explicit. It now becomes a design choice in the theme, rather than being hard coded.

Motivation:

  1. The original Bootswatch.com Litera theme has darker Slider trackers, which means that it can be a reasonable design choice
  2. The light themes have a Slider tracker that is hard to see, same with the progress bars. In some designs this is perfectly fine, but in others it makes the design hard to parse visually.
  3. Let the designer of the theme decide... don't link this parameter in a hard coded way

I have updated all the standard themes to expose the originally hard coded color, to this is expected to be a drop-in replacement.

Before this modification:

After this modification:

Tested by running TTKCreator and trying all themes: python -m ttkcreator

bszollosinagy commented 1 year ago

Original Color Scheme for Scale: image

Possible new one (or any other, see the "track" color spec the lower left corner) image