'''Current Version: 4.2 (2019-11-17)''' '''Available at:''' https://sourceforge.net/projects/tcl-awthemes/ [bll] 2019-10-4: With version 4.0, support for other themes has been added. A scalable 'black' theme has been implemented. [bll] 2019-10-7: With version 3.0, if tksvg is present, the graphics will scale according to the [tk scaling] setting. [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 and radiobuttons. The notebook tab top color is created dynamically. 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]. See also: [awlight ttk theme] On Mac OS X for versions prior to 8.6.10, 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. <>ChangeLog 4.2 * fix scaling of images. * adjust sizing for menu checkbutton and radiobutton. * add support for flexmenu. 4.1 * breaking change: renamed tab.* color names to base.tab.* * fix bugs in setBackground and setHighlight caused by the color renaming. * fix where the hover color for check and radio buttons is set. 4.0 * add support for other clam based themes. * breaking change: the .svg files are now loaded from the filesystem in order to support multiple themes. * breaking change: All of the various colors and derived colors have been renamed. * awdark/awlight: Fixed empty treeview indicator. * added scalable 'black' theme. 3.1 * Allow user configuration of colors. 3.0 * Breaking change: The package name has been renamed so that 'package require awdark' works. * Support for tksvg has been added. New graphics have been added to support tksvg, and the graphics will scale according to the 'tk scaling' setting. 'tk scaling' must be set prior to the package require statement. * demottk.tcl has been updated to have scalable fonts. The 'tk scaling' factor may be specified on the command line: demottk.tcl [[-scale ]] 2.6 * Fix mac colors 2.5 * Added missing TFrame style setup. 2.4 * Some cleanup for text field background. 2.3 * Added padding for Menu.TCheckbutton and Menu.TRadiobutton styles 2.2: * Added support for flexmenu. * Fixed listbox frame. 2.1: * Added Menu.TCheckbutton and Menu.TRadiobutton styles to support menu creation. 2.0: * Add setBackground(), setHighlight() routines. If wanted, these require the colorutils package. * Remove the 'option add' statements and use a bind to set the combobox's listbox colors. * Merge awdark and awlight themes into a single package. * More color cleanup. * Make notebook top bar use dynamic colors. 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. `::ttk::theme::awdark::setBackground color` Changes the background color and all other colors to match. (like [tk_setPalette]). This will also call setTextColors, setListboxColors and setMenuColors on all registered widgets. `::ttk::theme::awdark::setHighlight color` Changes the highlight color. ---- [img-awdark] After `::ttk::theme::[[ttk::style theme use]]::setBackground #253b20` [img-awdark-green] After `::ttk::theme::[[ttk::style theme use]]::setHighlight #3fff47`. Note that the radiobuttons are graphical, and do not change colors. [img-awdark-hl] ---- [Jeff Smith] 2019-07-04 : Below is an online demo using [CloudTk] <> <> ---- See also: [List of ttk Themes] <>GUI