• Dark mode support for ttk native Windows theme?

    From Eric Brunel@21:1/5 to All on Wed Apr 30 14:10:27 2025
    Hello all,

    Since I'm hardly ever using Windows at all, I discovered only recently
    that it now has a dark mode. And I also discovered that the native Windows
    ttk theme doesn't seem to care: whether the mode defined for applications
    in the Windows preferences is light or dark, the native ttk theme is
    light.

    I looked in the TIPs to see if there was any plan to support Windows' dark
    mode at some point but couldn't find anything. Is this something
    considered or is it not in the plans for the foreseeable future?

    Thanks!
    --
    Eric

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kevin Walzer@21:1/5 to Eric Brunel on Thu May 1 10:06:22 2025
    On 4/30/25 10:10 AM, Eric Brunel wrote:
    Hello all,

    Since I'm hardly ever using Windows at all, I discovered only recently
    that it now has a dark mode. And I also discovered that the native Windows ttk theme doesn't seem to care: whether the mode defined for applications
    in the Windows preferences is light or dark, the native ttk theme is
    light.

    I looked in the TIPs to see if there was any plan to support Windows' dark mode at some point but couldn't find anything. Is this something
    considered or is it not in the plans for the foreseeable future?

    Thanks!

    Marc Culler implemented theme switching for macOS - it's actually a
    complex undertaking. He just did it without a TIP because it doesn't
    require any new commands. Someone with equivalent Windows expertise
    would need to take this on for the MS platform.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Fri May 2 10:15:58 2025
    Am 01.05.2025 um 16:06 schrieb Kevin Walzer:
    On 4/30/25 10:10 AM, Eric Brunel wrote:
    Hello all,

    Since I'm hardly ever using Windows at all, I discovered only recently
    that it now has a dark mode. And I also discovered that the native
    Windows
    ttk theme doesn't seem to care: whether the mode defined for applications
    in the Windows preferences is light or dark, the native ttk theme is
    light.

    I looked in the TIPs to see if there was any plan to support Windows'
    dark
    mode at some point but couldn't find anything. Is this something
    considered or is it not in the plans for the foreseeable future?

    Thanks!

    Marc Culler implemented theme switching for macOS - it's actually a
    complex undertaking. He just did it without a TIP because it doesn't
    require any new commands. Someone with equivalent Windows expertise
    would need to take this on for the MS platform.

    Yes, we have to make this question visible to magic Csaba ;-).

    In the mean time, you may use one of the available dark themes.
    But I don't know, if they are Tk 9 ready.
    Here is my list:
    - awdark: https://sourceforge.net/projects/tcl-awthemes/
    scalable, great look, unfotunately, we lost Brad as developper...
    - azure: https://github.com/rdbende/Azure-ttk-theme

    Others on:
    https://wiki.tcl-lang.org/page/List+of+ttk+Themes

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eric Brunel@21:1/5 to Harald Oehlmann on Fri May 2 13:30:42 2025
    On Fri, 2 May 2025 10:15:58 +0200, Harald Oehlmann wrote:
    In the mean time, you may use one of the available dark themes.
    But I don't know, if they are Tk 9 ready.
    Here is my list:
    - awdark: https://sourceforge.net/projects/tcl-awthemes/
    scalable, great look, unfotunately, we lost Brad as developper...
    - azure: https://github.com/rdbende/Azure-ttk-theme

    Others on:
    https://wiki.tcl-lang.org/page/List+of+ttk+Themes

    Thanks Harald! I actually know about these themes, I actually use the
    Azure themes a lot on Linux, they look really great. As for their tk9- readiness, the Azure themes suffer from the 'open' & 'leaf' states for
    treeview items becoming internal. So they would require a patched version
    of tk to work as before, but that's an easy patch.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eric Brunel@21:1/5 to Kevin Walzer on Fri May 2 13:25:17 2025
    On Thu, 1 May 2025 10:06:22 -0400, Kevin Walzer wrote:
    Marc Culler implemented theme switching for macOS - it's actually a
    complex undertaking. He just did it without a TIP because it doesn't
    require any new commands. Someone with equivalent Windows expertise
    would need to take this on for the MS platform.

    I've seen what Mark did on macOS, and it's pretty impressive indeed. Makes tcl/tk application look like "first class citizens" in the environment,
    it's really great.

    Now since I posted here, I saw that quite a few other Windows applications don't switch to the dark theme when it's active either, so I guess people
    are kind of used to it.

    Thanks for the answer!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Fri May 2 17:52:15 2025
    Am 02.05.2025 um 15:30 schrieb Eric Brunel:
    On Fri, 2 May 2025 10:15:58 +0200, Harald Oehlmann wrote:
    In the mean time, you may use one of the available dark themes.
    But I don't know, if they are Tk 9 ready.
    Here is my list:
    - awdark: https://sourceforge.net/projects/tcl-awthemes/
    scalable, great look, unfotunately, we lost Brad as developper...
    - azure: https://github.com/rdbende/Azure-ttk-theme

    Others on:
    https://wiki.tcl-lang.org/page/List+of+ttk+Themes

    Thanks Harald! I actually know about these themes, I actually use the
    Azure themes a lot on Linux, they look really great. As for their tk9- readiness, the Azure themes suffer from the 'open' & 'leaf' states for treeview items becoming internal. So they would require a patched version
    of tk to work as before, but that's an easy patch.

    Yes, the discussion here stalled and the TIP is pending:

    https://core.tcl-lang.org/tk/tktview/d632d28ba4

    So much work to do...

    Thanks,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Fri May 2 21:50:20 2025
    Am 02.05.25 um 10:15 schrieb Harald Oehlmann:
    Am 01.05.2025 um 16:06 schrieb Kevin Walzer:
    On 4/30/25 10:10 AM, Eric Brunel wrote:
    Hello all,

    Since I'm hardly ever using Windows at all, I discovered only recently
    that it now has a dark mode. And I also discovered that the native
    Windows
    ttk theme doesn't seem to care: whether the mode defined for
    applications
    in the Windows preferences is light or dark, the native ttk theme is
    light.

    I looked in the TIPs to see if there was any plan to support Windows'
    dark
    mode at some point but couldn't find anything. Is this something
    considered or is it not in the plans for the foreseeable future?

    Thanks!

    Marc Culler implemented theme switching for macOS - it's actually a
    complex undertaking. He just did it without a TIP because it doesn't
    require any new commands. Someone with equivalent Windows expertise
    would need to take this on for the MS platform.

    Yes, we have to make this question visible to magic Csaba ;-).

    In the mean time, you may use one of the available dark themes.
    But I don't know, if they are Tk 9 ready.
    Here is my list:
    - awdark: https://sourceforge.net/projects/tcl-awthemes/
      scalable, great look, unfotunately, we lost Brad as developper...
    - azure: https://github.com/rdbende/Azure-ttk-theme

    Others on:
    https://wiki.tcl-lang.org/page/List+of+ttk+Themes

    Take care,
    Harald

    The xpnative and vista themes are implemented using the now hopelessly
    outdated UxTheme system, which - unfortunately - doesn't provide any
    "dark mode" support.

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From undroidwish@21:1/5 to nemethi on Fri May 2 23:45:20 2025
    On 5/2/25 21:50, nemethi wrote:

    The xpnative and vista themes are implemented using the now hopelessly outdated UxTheme system, which - unfortunately - doesn't provide any
    "dark mode" support.

    Howdy Csaba,

    out of curiosity, what are the contemporary alternatives?
    In Win32 native sense, i.e. without Tk and ttk themery.

    BR
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Sat May 3 11:27:25 2025
    Am 02.05.25 um 23:45 schrieb undroidwish:
    On 5/2/25 21:50, nemethi wrote:

    The xpnative and vista themes are implemented using the now hopelessly
    outdated UxTheme system, which - unfortunately - doesn't provide any
    "dark mode" support.

    Howdy Csaba,

    out of curiosity, what are the contemporary alternatives?
    In Win32 native sense, i.e. without Tk and ttk themery.

    BR
    Christian


    Hi Christian,

    I am (and have never been) a Windows expert, hence I am for sure not
    competent enough to answer this question. But:

    The Windows 11 system UI is based on the Fluent design system, using the relatively new WinUI library. This makes me to conclude that this
    library is currently the right choice for new developments on Windows.

    Best regards,

    Csaba

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From undroidwish@21:1/5 to nemethi on Sat May 3 12:58:13 2025
    On 5/3/25 11:27, nemethi wrote:
    Am 02.05.25 um 23:45 schrieb undroidwish:
    On 5/2/25 21:50, nemethi wrote:

    The xpnative and vista themes are implemented using the now
    hopelessly outdated UxTheme system, which - unfortunately - doesn't
    provide any "dark mode" support.

    Howdy Csaba,

    out of curiosity, what are the contemporary alternatives?
    In Win32 native sense, i.e. without Tk and ttk themery.

    BR
    Christian


    Hi Christian,

    I am (and have never been) a Windows expert, hence I am for sure not competent enough to answer this question.  But:

    The Windows 11 system UI is based on the Fluent design system, using the relatively new WinUI library.  This makes me to conclude that this
    library is currently the right choice for new developments on Windows.

    Thanks for the info, so I found this example:

    https://github.com/driver1998/WinUI-MinGW

    Ugh, XAML, C++ with lambada and coroutines, and whatnot.
    For my share another little shop of horror compared to Tk.

    Thanks again,
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Sat May 3 18:09:37 2025
    Am 02.05.2025 um 17:52 schrieb Harald Oehlmann:
    Am 02.05.2025 um 15:30 schrieb Eric Brunel:
    On Fri, 2 May 2025 10:15:58 +0200, Harald Oehlmann wrote:
    In the mean time, you may use one of the available dark themes.
    But I don't know, if they are Tk 9 ready.
    Here is my list:
    - awdark: https://sourceforge.net/projects/tcl-awthemes/
        scalable, great look, unfotunately, we lost Brad as developper... >>> - azure: https://github.com/rdbende/Azure-ttk-theme

    Others on:
    https://wiki.tcl-lang.org/page/List+of+ttk+Themes

    Thanks Harald! I actually know about these themes, I actually use the
    Azure themes a lot on Linux, they look really great. As for their tk9-
    readiness, the Azure themes suffer from the 'open' & 'leaf' states for
    treeview items becoming internal. So they would require a patched version
    of tk to work as before, but that's an easy patch.

    Yes, the discussion here stalled and the TIP is pending:

    https://core.tcl-lang.org/tk/tktview/d632d28ba4

    So much work to do...

    Thanks,
    Harald

    Please find now TIP 719:

    https://core.tcl-lang.org/tips/doc/trunk/tip/719.md

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Sat May 3 17:16:12 2025
    Am 03.05.2025 um 12:58 schrieb undroidwish:
    On 5/3/25 11:27, nemethi wrote:
    Am 02.05.25 um 23:45 schrieb undroidwish:
    On 5/2/25 21:50, nemethi wrote:

    The xpnative and vista themes are implemented using the now
    hopelessly outdated UxTheme system, which - unfortunately - doesn't
    provide any "dark mode" support.

    Howdy Csaba,

    out of curiosity, what are the contemporary alternatives?
    In Win32 native sense, i.e. without Tk and ttk themery.

    BR
    Christian


    Hi Christian,

    I am (and have never been) a Windows expert, hence I am for sure not
    competent enough to answer this question.  But:

    The Windows 11 system UI is based on the Fluent design system, using
    the relatively new WinUI library.  This makes me to conclude that this
    library is currently the right choice for new developments on Windows.

    Thanks for the info, so I found this example:

     https://github.com/driver1998/WinUI-MinGW

    Ugh, XAML, C++ with lambada and coroutines, and whatnot.
    For my share another little shop of horror compared to Tk.

    Thanks again,
    Christian

    Hi Csaba, Hi Christian,

    yes, recent Windows UI requires the .net machinery to my knowledge.
    Due to that, most real programs still use the old one.

    But what would be doable IMHO:

    - have a global platform independent switch "dark mode/light mode",
    which is initialized in a platform-dependent way and may be changed
    (like "tk scaling").
    - provide this state to all themes
    - adopt the standard themes to support a dark mode

    Any Windows App with dark mode does not look like Windows any more.
    The "look and Feel" is not unified.

    Is this possible thinking ?

    THanks for all,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Sat May 3 18:19:48 2025
    Am 03.05.25 um 11:27 schrieb nemethi:
    Am 02.05.25 um 23:45 schrieb undroidwish:
    On 5/2/25 21:50, nemethi wrote:

    The xpnative and vista themes are implemented using the now
    hopelessly outdated UxTheme system, which - unfortunately - doesn't
    provide any "dark mode" support.

    Howdy Csaba,

    out of curiosity, what are the contemporary alternatives?
    In Win32 native sense, i.e. without Tk and ttk themery.

    BR
    Christian


    Hi Christian,

    I am (and have never been) a Windows expert, hence I am for sure not competent enough to answer this question.  But:

    The Windows 11 system UI is based on the Fluent design system, using the relatively new WinUI library.  This makes me to conclude that this
    library is currently the right choice for new developments on Windows.

    Best regards,

    Csaba


    Necessary correction:

    I am not (and have never been) a Windows expert, ...
    ^^^

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

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