You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tkinter CheckButton default label white in macOS dark mode #82442
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ned-deily'closed_at=<Date2020-12-03.15:57:12.304>created_at=<Date2019-09-24.04:35:40.355>labels= ['OS-mac', 'type-bug', 'expert-tkinter', '3.7']
title='Tkinter CheckButton default label white in macOS dark mode'updated_at=<Date2020-12-03.15:57:12.303>user='https://bugs.python.org/RyangSohn'
I assume you are using a Python 3.7.x from a python.org macOS installer? Support for macOS dark mode is almost entirely a Tk issue as Tkinter is basically a shallow wrapper around Tk-provided APIs. We have been shipping Tk 8.6.8, s stable, slightly out-of-date version because it seemed to have the least number of issues across all of the macOS versions we support. With macOS 10.15 coming soon, I will shortly be taking another look st the latest unreleased Tk which may also have better support for dark mode.
The same behaviour can be observed with Tk 8.6.10 build on macOS 11.
IMHO the problem is not so much that the default text color changes, but that the background color of the window does not change, it stays the same light color as in light mode.
Activity
RyangSohn commentedon Sep 24, 2019
In macOS, when "Dark Mode" is turned on, TKinter's checkbutton's default label color is white, not black.
ned-deily commentedon Sep 24, 2019
I assume you are using a Python 3.7.x from a python.org macOS installer? Support for macOS dark mode is almost entirely a Tk issue as Tkinter is basically a shallow wrapper around Tk-provided APIs. We have been shipping Tk 8.6.8, s stable, slightly out-of-date version because it seemed to have the least number of issues across all of the macOS versions we support. With macOS 10.15 coming soon, I will shortly be taking another look st the latest unreleased Tk which may also have better support for dark mode.
ronaldoussoren commentedon Nov 16, 2020
The same behaviour can be observed with Tk 8.6.10 build on macOS 11.
IMHO the problem is not so much that the default text color changes, but that the background color of the window does not change, it stays the same light color as in light mode.
According to the Tk wiki <https://wiki.tcl-lang.org/page/Tk+differences+on+Mac+OS+X\> the background color should adjust itself automatically. I don't know if Tkinter does something that affects this.
ronaldoussoren commentedon Dec 3, 2020
This is a duplicate of bpo-42541.