Skip to content

NSTextFieldCell: default text colour is the control text colour#482

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nstextfieldcell-default-textcolor
Open

NSTextFieldCell: default text colour is the control text colour#482
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/nstextfieldcell-default-textcolor

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

-[NSTextFieldCell initTextCell:] set the default text colour to the
generic [NSColor textColor]. A text field is a control, and OS X uses
controlTextColor as the default text colour of an NSTextFieldCell. Use
controlTextColor to match. Verified on a macOS runner: a fresh
NSTextFieldCell reports controlTextColor, not textColor.

Adds a test for the default text colour.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 14:50
@DTW-Thalion DTW-Thalion force-pushed the fix/nstextfieldcell-default-textcolor branch 3 times, most recently from bc96876 to 69206b9 Compare July 12, 2026 20:41
The default text colour was the generic textColor; a text field is a
control, and OS X uses controlTextColor.  Use controlTextColor to match.
@DTW-Thalion DTW-Thalion force-pushed the fix/nstextfieldcell-default-textcolor branch from 69206b9 to 92f5879 Compare July 12, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant