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 there a way to make the preferences window entirely aero-glass? #78

Closed
ShikiSuen opened this issue Jul 27, 2022 · 5 comments
Closed

Comments

@ShikiSuen
Copy link
Contributor

ShikiSuen commented Jul 27, 2022

Previously in Interface Builder I can achieve this by
using NSVisualEffectView in the main window
and set the panel material to "sidebar" (for better readability).

image

// This turns things non-transparent when window is not activated:
image

I don't know how to do this with this "Preference" package.

Could anyone please give me some instructions on where and how to modify?

@sindresorhus
Copy link
Owner

You should not do this. The preferences window should be consistent in all apps. It should not have any vibrancy.

https://developer.apple.com/design/human-interface-guidelines/patterns/settings/

@sindresorhus
Copy link
Owner

and set the panel material to "sidebar" (for better readability).

The sidebar material actually decreases readability.

@ShikiSuen
Copy link
Contributor Author

@sindresorhus Uh... this is not a feature request of changing the default behavior of the package in this repository.
I guess per-project necessities are still discussable?

For example: the guide you have referrered is not suitable for a preference window of an input method since there's no way to tell which app it belongs to (unless you put the product name in the window title).

For this issue ticket, I ask the question because I want to learn how to hack this by myself, and also because that's my aesthetic flavor. Please tell me if asking a technical question of such is a guilt.

@sindresorhus
Copy link
Owner

For example: the guide you have referrered is not suitable for a preference window of an input method since there's no way to tell which app it belongs to (unless you put the product name in the window title).

The user knows this already because they opened it from your app.

For this issue ticket, I ask the question because I want to learn how to hack this by myself, and also because that's my aesthetic flavor. Please tell me if asking a technical question of such is a guilt.

I'm not trying to guilt you for asking this. I'm sharing my opinion as an experienced Mac app developer. I'm simply not willing to spend my time explaining how to do this when it's against my personal opinion, the macOS Human Interface Guidelines, and makes your app less Mac-like.

I would advise you to prioritize platform consistency over your own personal aesthetic preference.

@ShikiSuen
Copy link
Contributor Author

ShikiSuen commented Jul 27, 2022

The user knows this already because they opened it from your app.

Not exactly. The pref window of an input method can still be in the front while the current input method has already been switched to someone else. The guideline writer appearently has no awareness of such situation.

I'll ask someone else instead.

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

2 participants