Tk Source Code

View Ticket
Login
Ticket UUID: 3d13f87c8f1591e9afea2b3e7a6e737b3212a1b9
Title: console: tag colors not dark mode friendly
Type: Bug Version: 8.6.11
Submitter: chrstphrchvz Created on: 2021-03-08 10:54:07
Subsystem: 54. [console] Assigned To: marc_culler
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-07-25 03:29:06
Resolution: Fixed Closed By: marc_culler
    Closed on: 2025-07-25 03:29:06
Description:

The Tk console has hardcoded tag colors which may assume a light background color. The blue (#0000FF) color used for stdin in particular is difficult to read under dark mode (on macOS Aqua and likely other platforms):

User Comments: marc_culler added on 2025-07-25 03:29:06:
See [e90e8ca1a6] for the fix for this, which has been merged into 
core-8-6-branch, core-9-0-branch and core-9-1-branch.

chrstphrchvz added on 2021-03-08 11:10:19:

One easy solution might be to find a neutral color (perceived luminance closer to 50%) that looks good under both light and dark mode. DodgerBlue1 seems like one possible choice for stdin:


But the more ideal solution would be for separate contrasting colors to be used depending on whether light/dark mode is used. There are additional semantic colors on macOS which vary slightly under light/dark mode, but I think may still be too neutral for use as text colors. Maybe systemLinkColor, which contrasts slightly better, would work for stdin: