Skip to content

"Enter" icon in default button only for certain NSInterfaceStyles #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

probonopd
Copy link

Show "Enter" icon in default button only if NSInterfaceStyle is NSNextStepInterfaceStyle or GSWindowMakerInterfaceStyle.

That icon looks alien in other interface styles such as NSMacintoshInterfaceStyle:

image

Reference:

@probonopd probonopd requested a review from fredkiefer as a code owner July 13, 2025 19:51
Copy link
Member

@fredkiefer fredkiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but maybe we should discuss this change on the mailing list before merging.

@@ -101,8 +101,13 @@ - (id)init
[button setTitle: NSLocalizedString(@"OK", @"")];
[button setKeyEquivalent: @"\r"];
[button setImagePosition: NSImageRight];
[button setImage: [NSImage imageNamed: @"common_ret"]];
[button setAlternateImage: [NSImage imageNamed: @"common_retH"]];
NSInterfaceStyle interfaceStyle = NSInterfaceStyleForKey(@"NSInterfaceStyle", nil);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation here looks wrong

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed.

@probonopd
Copy link
Author

probonopd commented Jul 13, 2025

Thanks @fredkiefer for reviewing this. I am not familiar with the GNUstep mailing lists but if you'd like to take it there feel free to.

In NSMacintoshInterfaceStyle and themes like Rik, what is conveyed by the "enter" icon should be conveyed by the blue pulsing color and/or blue highlight glow around the button, shouldn't it? Similarly on Windows, I have never seen this icon in Windows native applications.

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.

2 participants