Tk Source Code

View Ticket
Login
Ticket UUID: e1e881b92008033f3818ac1613311c64a9790d2e
Title: Aqua Ttk entry: only foreground color customizable under dark mode
Type: Bug Version: 8.6.11
Submitter: chrstphrchvz Created on: 2021-03-01 04:05:15
Subsystem: 88. Themed Tk Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2021-03-04 20:35:44
Resolution: None Closed By: nobody
    Closed on:
Description:

When using the Ttk entry widget with the aqua theme under dark mode, custom foreground (text) colors are supported, but custom field backgrounds are ignored. This can lead to the text being difficult to read if a program hardcodes a dark foreground color (regardless of whether it also hardcoded a custom field background, or incorrectly assumed the field background is a light color).

If the aqua theme has no intention of supporting custom field background colors under dark mode, then I believe custom foreground colors should also be ignored (this would prevent illegible text, and be in line with previous decisions against customization support in native theming). Otherwise, custom field background colors should be supported under dark mode. It may also be better for custom colors to behave the same under both light mode and dark mode.

While I am aware programs could try to use appropriate foreground colors by detecting whether light/dark mode in use, I am personally not inclined to expect programs to do so in order to avoid this issue.

Not aware whether similar issues apply to other Ttk widgets.

User Comments: marc_culler (claiming to be Marc Culler) added on 2021-03-04 20:35:44:
I think I would vote for not supporting custom foreground colors for the
Aqua-themed ttk entry widget.