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 inconsistent icons in the app toolbar. #7163
Fix inconsistent icons in the app toolbar. #7163
Conversation
The problem was that the icons have their own color they use (`attr/action_icon_color`) which is fine, except in the toolbar where they should use a different color. The fix applies a style to all toolbars where in the style only adds a theme for the surface which remaps the `attr/action_icon_color` to the color the other icons in the toolbar use.
Hmm, I think this looks a bit weird with the black title and gray icons. It also seems that many other apps with white toolbars (WhatsApp, Signal, Firefox, Tasks, Material Files, even the Android Settings app) use full-black action icons. I think we should switch the overflow menu icon to black instead of switching all other icons to gray. |
No problem, now that I know where the right knobs are it should be super easy to switch to that ;) |
Before they were quite a gray color but now they are more black on light theme and more white on the dark theme.
I made them now vibrant. I also discovered an issue with my solution which required me to remove the Moreover I also discovered that the fix currently doesn't apply to the preferences, but I will look into that now. |
I can't seem to figure out how to style the toolbar from the settings screen. It is a little bit difficult since we don't create it directly but |
This means I think we should be consistent across all screens, either removing the style completely or keeping it everywhere. |
I agree, about consitency. Tracking down the changes I found that in commit 7f4d43d you refactored the toolbar and added the theme as it wasn't there before. However later we switched from Anyway, I will do some testing on older devices but so far I am leaning towards removing it everywhere. As for non dynamic themes, it looks great there and is quite similar to the dynamic themes which is why I didn't include it in the screenshots before. Maybe I should have explained that more. |
Thanks! I sneaked in a fix for the toolbar having a weird shadow :) |
@ByteHamster your fix also makes the toolbar in the settings page blue with elevation, which looks kinda odd as the statusbar is still white. |
Oops, thanks. Apparently I didn't test well enough. Fixed in #7169 |
Description
Closes: #7128
The problem was that the icons have their own color they use (
attr/action_icon_color
) which is fine, except in the toolbar where they should use a different color.The fix applies a style to all toolbars where in the style only adds a theme for the surface which remaps the
attr/action_icon_color
to the color the other icons in the toolbar use.Checklist
./gradlew checkstyle spotbugsPlayDebug spotbugsDebug :app:lintPlayDebug