Hi all,has light sensitivity.
Not able to test/play around with this directly as I'm on Win 7, but a user has reported that my Tk app doesn't respect the colour scheme from Dark Mode on Windows 10. Is anyone aware of this?
We were able to manually configure most widget background colours to something suitably close to work around it for the most part, but the titlebar/menubar, for instance, remain the usual bright grey, which is problematic for the user in question who
All of the extra Tk colours which are defined on Windows, such as SystemButtonFace, also seem to be the same on their system as they are on mine, which suggests these are using some hardcoded values rather than actually getting them from the Windowssettings as you'd expect.
Is there any way I'm not aware of to alter this, or would anyone agree that this is a bug in Tk?
Thanks for your help,
Mike
Am 01.11.2021 um 17:55 schrieb Mike Griffiths:has light sensitivity.
Hi all,
Not able to test/play around with this directly as I'm on Win 7, but a user has reported that my Tk app doesn't respect the colour scheme from Dark Mode on Windows 10. Is anyone aware of this?
We were able to manually configure most widget background colours to something suitably close to work around it for the most part, but the titlebar/menubar, for instance, remain the usual bright grey, which is problematic for the user in question who
settings as you'd expect.All of the extra Tk colours which are defined on Windows, such as SystemButtonFace, also seem to be the same on their system as they are on mine, which suggests these are using some hardcoded values rather than actually getting them from the Windows
Hi Harald,Is there any way I'm not aware of to alter this, or would anyone agree that this is a bug in Tk?
Thanks for your help,
Mike
Mike,
yes, Tk does not respect the Windows dark mode.
I invite you to the awsome (and unfortunately abandoned) AWDark theme,
which is great as dark mode. It has a lot of options. I mainly use it
for Android...
Take care,
Harald
I invite you to the awsome (and unfortunately abandoned) AWDark theme,
According to https://wiki.tcl-lang.org/page/awthemes the current version is 10.4.0 of 2021-6-18.I invite you to the awsome (and unfortunately abandoned) AWDark theme,
I invite you to the awsome (and unfortunately abandoned) AWDark theme,
According to https://wiki.tcl-lang.org/page/awthemes the current version is 10.4.0 of 2021-6-18.
четверг, 4 ноября 2021 г. в 03:18:12 UTC+3, lamuzz...@gmail.com:Hi Alex,
Hi Mike,According to https://wiki.tcl-lang.org/page/awthemes the current version is 10.4.0 of 2021-6-18.I invite you to the awsome (and unfortunately abandoned) AWDark theme,
The menu bar is indeed a capricious girl as for Tcl/Tk for Windows.
Can your user move to Windows 10? It provides a nice set of themes, incl. dark ones.
See, e.g., how "Mino Dark Green 6" theme of Windows 10 decorates alited editor. The editor is written in pure Tcl/Tk. In the screenshot, it uses its own "sun-valley-dark" theme (am sort of boasting:)
https://aplsimple.github.io/en/tcl/alited/files/alited-win10.png
The user is on Windows 10, but the app title bar and the menu bar are still a very old-school-style solid greyish in my Tcl/Tk app - if anything it looks more 'Classic Windows' there than it does on my Win 7 machine, not sure why. See https://i.imgur.com/PuWphYN.png for screenshots which show it using default colouring on the right, and with the highlighted code adapation on the left to recolour some widgets, which doesn't touch the window frame/menu.
I'm not sure if there's a reason it has that look for them on Win 10 (a friend of theirs, also on Win 10 with dark mode settings in Windows, is seeing the same thing) or if there's anything I/the user can do about it?
That is right, but, unfortunately, the package is abandoned, indeed.
Its author Brad Lanam posted on the same day on this newsgroup:
com/PuWphYN.png for screenshots which show it using default colouring on the right, and with the highlighted code adapation on the left to recolour some widgets, which doesn't touch the window frame/menu.The user is on Windows 10, but the app title bar and the menu bar are still a very old-school-style solid greyish in my Tcl/Tk app - if anything it looks more 'Classic Windows' there than it does on my Win 7 machine, not sure why. See https://i.imgur.
I'm not sure if there's a reason it has that look for them on Win 10 (a friend of theirs, also on Win 10 with dark mode settings in Windows, is seeing the same thing) or if there's anything I/the user can do about it?Mike,
Indeed looks bad. With icons in any case, Windows or not.
Still, you didn't supply details (me too, though:), i.e.
- what version of Tcl/Tk for Windows (mine is 8.6.8)
- do you use tclsh or tclkit? or perhaps a stand-alone exe?
- if it's tclkit, what's its origin?
- do you use a specific package rendering GUI? or it's all core Tcl/Tk?
- what Tk theme are you using? sincerely, I cannot recognize your Tk theme by your shots (because of their poor resolution)
- did you try the recommended awdark theme?
Ideally, you might drop a link to the sources to try it by others. Or at least, if it's not free, a part of it being enough to try.
Hi all,has light sensitivity.
Not able to test/play around with this directly as I'm on Win 7, but a user has reported that my Tk app doesn't respect the colour scheme from Dark Mode on Windows 10. Is anyone aware of this?
We were able to manually configure most widget background colours to something suitably close to work around it for the most part, but the titlebar/menubar, for instance, remain the usual bright grey, which is problematic for the user in question who
All of the extra Tk colours which are defined on Windows, such as SystemButtonFace, also seem to be the same on their system as they are on mine, which suggests these are using some hardcoded values rather than actually getting them from the Windowssettings as you'd expect.
Is there any way I'm not aware of to alter this, or would anyone agree that this is a bug in Tk?
Thanks for your help,
Mike
BTW: Is there a way in Tcl/Tk to get the current theme?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:52:27 |
Calls: | 6,496 |
Calls today: | 7 |
Files: | 12,100 |
Messages: | 5,277,252 |