Groups | Search | Server Info | Login | Register


Groups > comp.lang.tcl > #55602

Re: Change padding with awthemes

From et99 <et99@rocketship1.me>
Newsgroups comp.lang.tcl
Subject Re: Change padding with awthemes
Date 2026-03-20 21:46 -0700
Organization A noiseless patient Spider
Message-ID <10pl7ro$268vi$1@dont-email.me> (permalink)
References <10pjem4$81fu$1@tota-refugium.de>

Show all headers | View raw


On 3/20/2026 5:30 AM, meshparts wrote:
> I'm having issues with awthemes and awdark.
> The buttons padding is in most cases 0 and I want to reset it to original values.
> I could identify the settings (I think) in awthemes.tcl, where the *.padding properties are set, for example:
> 
> set vars(names.colors.derived) { \
> other     checkbutton.padding           {5 0 1 2}               static
> 
> But changing the values here have no effect, the icon or text in the buttons (normal ttk::button, checkbutton, ratiobutton with -style Toolbutton) have no margin an go up to the button edge.
> 
> Here is how to test:
> 
> package require ttk::theme::awdark
> ttk::style theme use awdark
> pack [::ttk::button .b -text Test -style Toolbutton]
> 
> Can anywone help?
> 
> Many thanks
> Alex


I think you want -padding {list} for ttk::button it's one of those inherited options not mentioned directly in the ttk::button section, but is mentioned as a styling option down below. It turns out you can set the value for either just the widget (on creation or configure) or the entire widget class using the style commands.

The {list} can be 1, 2, or 4 values, with something like left, right, top, bottom. If you use less than 4 you'll have to try it out, because I don't know where that's documented how it fills in the 4 if some are left out. They call it padding but don't say what that is.

-e

Back to comp.lang.tcl | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Change padding with awthemes meshparts <alexandru.dadalau@meshparts.de> - 2026-03-20 13:30 +0100
  Re: Change padding with awthemes et99 <et99@rocketship1.me> - 2026-03-20 21:46 -0700
    Re: Change padding with awthemes et99 <et99@rocketship1.me> - 2026-03-21 13:54 -0700
      Re: Change padding with awthemes meshparts <alexandru.dadalau@meshparts.de> - 2026-03-23 14:51 +0100
    Re: Change padding with awthemes meshparts <alexandru.dadalau@meshparts.de> - 2026-03-23 14:52 +0100

csiph-web