8000 Fix tk tooltips for dark themes. by anntzer · Pull Request #17756 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix tk tooltips for dark themes. #17756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2020
Merged

Fix tk tooltips for dark themes. #17756

merged 1 commit into from
Jun 25, 2020

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Jun 25, 2020

Not setting the background explicitly to a light color is sufficient to
avoid having white text on a light color when using a dark desktop
theme.

(The forced background color goes back to when ToolTip was introduced,
in c887139, with no comment as to why.)

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Not setting the background explicitly to a light color is sufficient to
avoid having white text on a light color when using a dark desktop
theme.

(The forced background color goes back to when ToolTip was introduced,
in c887139, with no comment as to why.)
@QuLogic QuLogic added this to the v3.3.0 milestone Jun 25, 2020
@QuLogic
Copy link
Member
QuLogic commented Jun 25, 2020

Putting this on 3.3 though it's not critical because it goes along with a lot of the other dark theme fixes we did for it.

@QuLogic QuLogic merged commit 0ecd097 into matplotlib:master Jun 25, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 25, 2020
@anntzer anntzer deleted the tkdark branch June 25, 2020 22:43
QuLogic added a commit that referenced this pull request Jun 26, 2020
…756-on-v3.3.x

Backport PR #17756 on branch v3.3.x (Fix tk tooltips for dark themes.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0