Tk Source Code

View Ticket
Login
Ticket UUID: 51054929f0d2cae04fe0d2a3178e44dd23bdd1ea
Title: Undocumented effects of menu entry color options on aqua
Type: Bug Version: 8.6.9
Submitter: chrstphrchvz Created on: 2019-02-28 04:39:01
Subsystem: 11. Aqua Menus Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2022-02-25 07:56:44
Resolution: Duplicate Closed By: chrstphrchvz
    Closed on: 2022-02-25 07:56:44
Description:

There doesn't appear to be documentation of the limitations (whether or not they are intentional) of using the -foreground, -background, -activeforeground, and -activebackground options on macOS aqua.

The behavior I currently observe:

If only one of -foreground or -background is specified, the color is used as the foreground of the entry (e.g. text color). If both -foreground and -background are specified, -foreground is used as the foreground color, and -background is ignored. Neither option affects the background color. On recent macOS, the background of entries may be light or dark depending on whether dark mode or dark menu bar are set in System Preferences > General.

-activeforeground and -activebackground have no effect; the foreground color is always used as the activeforeground color, and the activebackground color is determined by the color set in System Preferences > General.

Tk app developers targeting aqua should be aware that setting any custom colors in menu entries may make entries difficult to read, sometimes (but not always) depending on the user's choice of light/dark mode and highlight color.

User Comments: chrstphrchvz added on 2019-08-11 23:39:34:

This is likely a duplicate of [3588636]