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

Fix NSToolbar preserving the visual state of previous selected pane on macOS Sonoma #113

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

francisfeng
Copy link
Contributor

Example

As shown in the screenshot, there’s a UI glitch on Sonoma 14.0. It can be easily reproduced by simply running the Example project and switching around the setting panes.

You won’t have this issue if you set animate to false during the initialization of SettingsWindowController.

Apple may fix this issue in a future release of Sonoma, which makes this workaround useless. But I don’t know if we should wait or not.

@sindresorhus
Copy link
Owner

It's still getting stuck for me, even with these changes.

Screenshot 2023-10-16 at 16 28 28

@francisfeng
Copy link
Contributor Author

I changed the timing of the refresh action.

There’s still a noticeable delay on state changes. But I think this issue is mitigated.

@sindresorhus
Copy link
Owner

sindresorhus commented Oct 19, 2023

Have you tested the existing toolbar (not this PR) on macOS 14.1? If not, I recommend doing that. Just in case this issue has already been fixed there, and this fix would be moot.

@francisfeng
Copy link
Contributor Author

Yeah. I updated my Mac to macOS 14.1 Developer Beta and this issue still exists.

example

francisfeng

This comment was marked as resolved.

@ankitpanchotiya99138
Copy link

@francisfeng @sindresorhus How can I set UI for dark and light? I try to set color but facing some issue on set color for Toolbar background.

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

Successfully merging this pull request may close these issues.

3 participants