-
Notifications
You must be signed in to change notification settings - Fork 107
"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
base: master
Are you sure you want to change the base?
Conversation
Show "Enter" icon in default button only if NSInterfaceStyle is NSNextStepInterfaceStyle or GSWindowMakerInterfaceStyle. This looks alien in other interface styles.
There was a problem hiding this 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.
Source/GSHelpManagerPanel.m
Outdated
@@ -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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
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. |
Show "Enter" icon in default button only if
NSInterfaceStyle
isNSNextStepInterfaceStyle
orGSWindowMakerInterfaceStyle
.That icon looks alien in other interface styles such as
NSMacintoshInterfaceStyle
:Reference: