Version 12 of awdark ttk theme

Updated 2018-09-05 17:02:50 by bll

awdark ttk theme

bll 2018-9-1: Just thought I would try and create a new theme. Loosely based on adwaita dark. I have learned more about ttk themeing, found issues in my application code related to colors and themes. Uses graphics for the checkbuttons, radiobuttons and the notebook tab top color. Everything else is based on the clam theme.

  • Focus box around notebook tabs is larger.
  • Focus box for checkbuttons and radiobuttons covers both the indicator and the text.
  • Includes helper routines to set the colors for menu, listbox and text.

On Mac OS X, to override the aqua styled scrollbars, use:

ttk::scrollbar .sb -style Vertical.TScrollbar
ttk::scrollbar .sb -style Horizontal.TScrollbar

The -style option must be present when the scrollbar is created, an aqua scrollbar cannot be reconfigured.

See also: awlight ttk theme

Current Version: 1.4

 ChangeLog

1.4: change button anchor to default to center to follow majority of themes

1.3: clean up images a little

1.2: fix button press color

1.1: per request, remove the leading :: from the package name.

1.0: More fixes for Mac OS X.

0.9: Fixes for Mac OS X.

0.8: Set disabled field background color for entry, spinbox, combobox. Set disabled border color.

0.7: Fixed listbox helper routine. Added option for dark background for the text helper routine

0.6: Fixed hover highlight on notebook tabs.


::ttk::theme::awdark::setMenuColors .menuwidget

Sets the menu colors and also changes any checkbutton and radiobutton types to use thematic images. Run this after adding all the menu items to the menu.

Side effect: The menu will have -hidemargin set to true.

If you don't want the thematic images, run it before adding your menu items (and set -hidemargin back to false).

::ttk::theme::awdark::setTextColors .textwidget ?-dark?

Sets the text widget colors. If -dark is specified, the darker background color (as for entry) will be used.

::ttk::theme::awdark::setListboxColors .listboxwidget

Sets the listbox widget colors.


For the moment, available at: https://gentoo.com/tcl/awdark.tcl

The demo code to display the widgets is: https://gentoo.com/tcl/demottk.tcl


Please post comments in the comp.lang.tcl thread (active 2018-9-1): https://groups.google.com/d/topic/comp.lang.tcl/fkwlov3x2cA/discussion

img-awdark


See also: List of ttk Themes