]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Sep 2024 10:50:39 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 10:50:39 +0000 (12:50 +0200)
commit29733b084db99a76ef2ffe0664f7f1e0efa47679
tree4b6735374ad9afec0b372522e006d12f8a3b603d
parent4210a7d02ba6ea02c0baa8737fdcd5086a496618
[3.13] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605) (#122739)

gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-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 (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]