ui: rework state layers
Unify the background state layers of the entire app by overriding colorControlHighlight. Lots of components still use it, so it's beneficial to make it consistent with the rest of the app theming.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
Used on devices when we can technically use "transparent" system bars, but fully
|
||||
transparent system bars would actually be made translucent by the OS.
|
||||
-->
|
||||
<color name="chrome_transparent_ish">#01fafafa</color>
|
||||
<color name="chrome_transparent_ish">#01ffffff</color>
|
||||
|
||||
<!-- Replicate extra theme values for widgets -->
|
||||
<color name="widget_surface">@color/material_dynamic_primary95</color>
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
<resources>
|
||||
<!-- Master parent theme -->
|
||||
<style name="Theme.Auxio" parent="Theme.Material3.DynamicColors.DayNight" />
|
||||
<!-- Theme that implements nicer selector attributes not supported on lollipop-->
|
||||
<style name="Theme.Auxio.V23" parent="Theme.Auxio" />
|
||||
<!-- Template theme that handles edge-to-edge on other styles variants -->
|
||||
<style name="Theme.Auxio.V27" parent="Theme.Auxio">
|
||||
<style name="Theme.Auxio.V27" parent="Theme.Auxio.V23">
|
||||
<item name="android:statusBarColor">@color/chrome_translucent</item>
|
||||
<item name="android:navigationBarColor">@color/chrome_translucent</item>
|
||||
</style>
|
||||
@@ -40,10 +42,16 @@
|
||||
<item name="textAppearanceBodyMedium">@style/TextAppearance.Auxio.BodyMedium</item>
|
||||
<item name="textAppearanceBodySmall">@style/TextAppearance.Auxio.BodySmall</item>
|
||||
|
||||
<!-- Work around hard-coded text highlight colors in the default Material3 theme -->
|
||||
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
|
||||
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>
|
||||
|
||||
<!-- Fix dumb default android behavior -->
|
||||
<item name="android:scrollbars">none</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
|
||||
<item name="colorControlNormal">?attr/colorOnSurfaceVariant</item>
|
||||
<item name="colorControlActivated">?attr/colorPrimary</item>
|
||||
|
||||
<item name="preferenceStyle">@style/Preference.Auxio</item>
|
||||
@@ -53,13 +61,8 @@
|
||||
</item>
|
||||
<item name="toolbarNavigationButtonStyle">@style/Widget.Auxio.Toolbar.Navigation</item>
|
||||
<item name="actionOverflowButtonStyle">@style/Widget.Auxio.Button.Overflow</item>
|
||||
|
||||
<!-- Work around hard-coded text highlight colors in the default Material3 theme -->
|
||||
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
|
||||
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Theme.Auxio.App" parent="@style/Theme.Auxio.Blue" />
|
||||
|
||||
<!--
|
||||
|
||||
@@ -172,8 +172,12 @@
|
||||
<style name="Widget.Auxio.Button.Secondary" parent="Widget.Material3.Button.OutlinedButton" />
|
||||
|
||||
<style name="Widget.Auxio.Button.Icon.Base" parent="Widget.Material3.Button.IconButton">
|
||||
<item name="iconTint">?attr/colorControlNormal</item>
|
||||
<item name="rippleColor">@color/sel_icon_button_ripple</item>
|
||||
<item name="materialThemeOverlay">@style/ThemeOverlay.Auxio.UncheckableIconButton</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.Auxio.UncheckableIconButton" parent="">
|
||||
<item name="colorContainer">@android:color/transparent</item>
|
||||
<item name="colorOnContainer">?attr/colorOnSurfaceVariant</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Auxio.Button.Icon.Small" parent="Widget.Auxio.Button.Icon.Base">
|
||||
|
||||
Reference in New Issue
Block a user