]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605)
authorJohn Riggles <jriggles@icloud.com>
Fri, 2 Aug 2024 03:02:43 +0000 (23:02 -0400)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2024 03:02:43 +0000 (23:02 -0400)
commit5a7f7c48644baf82988f30bcb43e03dcfceb75dd
treed0553f4065cc589e4324b7cd00fb75b20bafb413
parentdbdbef3668293abdceac2b8a7b3e4615e6bde143
gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605)

On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (#120083 (comment)).

The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/News3.txt
Lib/idlelib/tooltip.py
Misc/NEWS.d/next/IDLE/2024-06-16-21-42-45.gh-issue-120083.nczuyv.rst [new file with mode: 0644]