]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 Aug 2024 17:12:41 +0000 (19:12 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Aug 2024 17:12:41 +0000 (13:12 -0400)
commit1f779b0f33da07404d8403019df2e684703cdbca
tree43a65d15c3f4ab8c9389ee654158d6323fce020b
parent22fdeeb3cb84284f20d6c6e77bb0bfb7d3235735
[3.12] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605) (#122592)

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 (GH-120083 (comment)).

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

---------
(cherry picked from commit 5a7f7c48644baf82988f30bcb43e03dcfceb75dd)

Co-authored-by: John Riggles <jriggles@icloud.com>
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]