Skip to content
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

Closed
fracturedsoftware opened this issue May 9, 2020 · 6 comments
Closed

Comments

@fracturedsoftware
Copy link

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!

@sindresorhus
Copy link
Owner

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?

@fracturedsoftware
Copy link
Author

fracturedsoftware commented May 18, 2020 via email

@sindresorhus
Copy link
Owner

Thanks for elaborating.

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.

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.

@phucledien
Copy link

+1 for Spacer. In my case, I would use it for separating the About pane :D.
Like this one in CleanShot X application

image

@sindresorhus
Copy link
Owner

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.

@sindresorhus
Copy link
Owner

I'm going to pass on this, since on macOS 11, all the icons are supposed to be centered, so this is moot there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants