Tk Source Code

View Ticket
Login
2025-07-25
03:29 Closed ticket [3d13f87c8f]: console: tag colors not dark mode friendly plus 7 other changes artifact: 21fcacb2ed user: marc_culler
03:24
Fix [3d13f87c8f] and [e90e8ca1a6]: make the stdin text more readable when in dark mode on Aqua check-in: 6f5d9ad374 user: culler tags: trunk, main
03:21
Fix [3d13f87c8f] and [e90e8ca1a6]: make the stdin text more readable when in dark mode on Aqua check-in: a6f284534c user: culler tags: core-9-0-branch
03:18
Fix [3d13f87c8f] and [e90e8ca1a6]: make the stdin text more readable when in dark mode on Aqua check-in: 2ab773f130 user: culler tags: core-8-6-branch
2025-07-23
22:35 Ticket [e90e8ca1a6] macOS: Default Wish dark theme uses a blue that's hard to read status still Open with 3 other changes artifact: 925d81f3c2 user: chrstphrchvz
2021-03-08
11:10 Ticket [3d13f87c8f] console: tag colors not dark mode friendly status still Open with 3 other changes artifact: 270547c138 user: chrstphrchvz
10:54 New ticket [3d13f87c8f]. artifact: 2fb78cb231 user: chrstphrchvz

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: