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

Highlight active toolbar buttons on hover on macOS #460

Open
cbrnr opened this issue Dec 11, 2024 · 2 comments
Open

Highlight active toolbar buttons on hover on macOS #460

cbrnr opened this issue Dec 11, 2024 · 2 comments
Labels

Comments

@cbrnr
Copy link
Owner

cbrnr commented Dec 11, 2024

On macOS, Qt doesn't highlight toolbar buttons on hover (they call it "autoraise"), see here. This is quite unfortunate, because (1) native macOS application do highlight on hover, and (2) from a usability point of view, it is really difficult to discover if a button is active or not.

Although this is not an MNELAB issue, maybe we could implement a workaround as outlined here if it is not too hacky (e.g., it needs to support both light and dark themes).

@cbrnr cbrnr added the macos label Dec 11, 2024
@hoechenberger
Copy link
Contributor

One of the challenges I foresee for the workaround implementation is properly dealing with the OS theme (light vs dark)

@cbrnr
Copy link
Owner Author

cbrnr commented Dec 12, 2024

Yes, maybe, although it is possible to determine which system theme is active (and there is also a signal which is emitted if the theme changes).

For reference, here's the toolbar of a native macOS app (Notes) in both light and dark modes:

Screen.Recording.2024-12-12.at.06.43.30.mov
Screen.Recording.2024-12-12.at.06.42.43.mov

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

No branches or pull requests

2 participants