-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Adjust colors based on window focus, like native apps #395
Comments
macos_window_utils’s EDIT: That said, macos_window_utils uses EDIT 2: Nevermind the first edit, we are already using |
and Please add widgets equivalent to material InkWell Widget. InkWell widget provides focus visual change and mouse hover effects. Thx. |
Please file a new issue for this, as it is not connected to this. |
Ok |
It works with the system's accent color: |
It works with widgets that have the accent color already implemented. Currently, that only includes the buttons and the sidebar items, once #484 is merged. |
This will involve either using the
desktop_lifecycle
plugin or writing our own.I've attempted this with
desktop_lifecycle
and it works quite well.We'll need to add a dynamic color to
MacosColors
to represent inactive colors for the sidebar and toolbar (both use the same), and a style inMacosTypography
that colors inactive text in the sidebar and toolbar. We'll also need inactive icon colors, and a utility to darken the primary color where appropriate.We will need to determine whether to check if the window is active in each widget that needs to be adjusted, or do it top-level (like in
MacosApp
) and propagate the result of the check through the widget tree viaMacosThemeData
or anotherInheritedWidget
.The text was updated successfully, but these errors were encountered: