• Background color of ttk C.TLabel on macOS

    From Gino Welle@21:1/5 to All on Sun Dec 26 22:20:42 2021
    Is it not possible to use style to change the background color of C.TLabel on macOS?

    Both do not have any effect:

    ttk::style configure C.TLabel -activebackground red
    ttk::style configure C.TLabel -background red

    Thanks
    Welle

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jrapdx@21:1/5 to welle...@googlemail.com on Mon Dec 27 03:04:27 2021
    On Sunday, December 26, 2021 at 10:20:44 PM UTC-8, welle...@googlemail.com wrote:
    Is it not possible to use style to change the background color of C.TLabel on macOS?

    Both do not have any effect:

    ttk::style configure C.TLabel -activebackground red
    ttk::style configure C.TLabel -background red

    Thanks
    Welle

    FWIW I've encountered similar issues with ttk on Windows. The ttk widgets overall have fewer out-of-the-box options, sometimes this can be frustrating. In one project spinbox and frame caused the biggest headaches. Ultimately I accepted ttk's limitations
    and used the ttk versions anyway.

    To my mind the biggest hurdle to optimal use of ttk is the tremendously confusing and singularly opaque documentation concerning customizing options. Since the '90's I've built more than a few extremely robust and useful tcltk programs . The amount of
    improvement in tcltk over the decades is remarkable, it's a shame that poor documentation is such an impediment to taking full advantage of its capabilities.

    JRA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kevin Walzer@21:1/5 to Gino Welle on Mon Dec 27 18:15:25 2021
    On 12/27/21 1:20 AM, Gino Welle wrote:
    Is it not possible to use style to change the background color of C.TLabel on macOS?

    You're aware that many sub-components of ttk styles on macOS and Windows
    use native rendering (at least with the aqua and win* themes) and are
    not as configurable as Tk or one of the non-native ttk themes?

    --
    Kevin Walzer
    Code by Kevin
    http://www.codebykevin.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gino Welle@21:1/5 to All on Tue Jan 18 14:02:04 2022
    You're aware that many sub-components of ttk styles on macOS and Windows
    use native rendering (at least with the aqua and win* themes) and are
    not as configurable as Tk or one of the non-native ttk themes?

    Yes and no. I see several projects where everything is (seems) customized. Take the Azure Theme (https://github.com/rdbende/Azure-ttk-theme). If I apply it to my app... I see many of the things I want to achieve implemented. So, I am not sure what is
    possible and what not (unfortunately my command of Tcl is so basic that I can not 'extract' useful information from those projects). I agree with Jrapdx that documentation is scarce and confused.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kevin Walzer@21:1/5 to Gino Welle on Tue Jan 18 18:13:41 2022
    On 1/18/22 5:02 PM, Gino Welle wrote:

    You're aware that many sub-components of ttk styles on macOS and Windows
    use native rendering (at least with the aqua and win* themes) and are
    not as configurable as Tk or one of the non-native ttk themes?

    Yes and no. I see several projects where everything is (seems) customized. Take the Azure Theme (https://github.com/rdbende/Azure-ttk-theme). If I apply it to my app... I see many of the things I want to achieve implemented. So, I am not sure what is
    possible and what not (unfortunately my command of Tcl is so basic that I can not 'extract' useful information from those projects). I agree with Jrapdx that documentation is scarce and confused.

    The themes that are platforrm-native (i.e. "aqua") are limited in their configurability. The non-native themes are fully configurable per the
    man page. This theme is derived from clam, which is one of the
    non-native themes. I cannot help with customizing this theme, however,
    as I stick with the native themes in my Tk apps. (Native theming is the
    primary reason to use ttk in my experience.)

    --
    Kevin Walzer
    Code by Kevin
    http://www.codebykevin.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)