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
Is it possible to add a flexible space between toolbar icons? #50
Comments
Just curious, what would the |
Hi Sindre,
Sorry for taking so long to get back to you.
I have included a small image of a Preference panel in an old app of mine. The idea is to be able to completely reset the preferences, or in some cases have a list of the panels with a checkbox next to them, so that you can just reset some preferences. This revert/reset idea used to be quite common but its be a while since I looked - an of course it would be possible to do it a different way as well.
In my app above I used another framework for the preferences - DBPrefs. The Toolbar spacer was created using an NSToolbarSpaceItemIdentifier.
Hope that helps and thank you for the framework!
Regards,
Peter
… On 9 May 2020, at 5:35 pm, Sindre Sorhus ***@***.***> wrote:
Just curious, what would the Revert item do? Is it a button with an action or does it show another pane? If a pane, what would the pane contain?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#50 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIM5O6TPQS6355SZLZDNU4TRQUBT5ANCNFSM4M4T4YWA>.
-- Email domain proudly hosted at https://migadu.com
|
Thanks for elaborating.
You should generally not have "reset"-type button. But if you do, it should be in the context of where the preferences are set, meaning a button in the relevant pane, not in a separate "Reset" pane. I'm lukewarm on adding support for a spacer. Spacers are often used in preferences windows when they are not needed. None of Apple's apps use a spacer in their preferences panes (AFAIK). I'll keep this open for more opinions. |
I think that is an anti-pattern and also against the macOS Human Interface Guidelines. "About" has nothing to do with preferences. "About" should be in a separate window. |
I'm going to pass on this, since on macOS 11, all the icons are supposed to be centered, so this is moot there. |
I have a need to add a 'Revert' item to my preferences toolbar. I would like this item to be placed on the right of the toolbar with a flexible space between it and the other items. The flexible space pushes the item all the way to the right. I don't see an obvious way to do this in your framework. Is it possible?
Thanks!
The text was updated successfully, but these errors were encountered: