ui: fix app theme
Make the app theme (Shows before activity startup) the blue theme instead of the default material purple.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurface"
|
||||
android:theme="@style/Theme.Widget"
|
||||
android:theme="@style/Theme.Auxio.Widget"
|
||||
tools:ignore="Overdraw">
|
||||
|
||||
<android.widget.ImageView
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/ui_widget_bg"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:theme="@style/Theme.Widget">
|
||||
android:theme="@style/Theme.Auxio.Widget">
|
||||
|
||||
<!--
|
||||
See widget_small.xml for an explanation for the ImageView setup.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/ui_widget_bg"
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:theme="@style/Theme.Widget">
|
||||
android:theme="@style/Theme.Auxio.Widget">
|
||||
|
||||
<!--
|
||||
See widget_small.xml for an explanation for the ImageView setup.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/transparent"
|
||||
android:theme="@style/Theme.Widget">
|
||||
android:theme="@style/Theme.Auxio.Widget">
|
||||
|
||||
<!--
|
||||
For our widgets to work, we need to scale the ImageView across a 1:1 aspect ratio.
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:backgroundTint="?attr/colorSurface"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="horizontal"
|
||||
android:theme="@style/Theme.Widget">
|
||||
android:theme="@style/Theme.Auxio.Widget">
|
||||
|
||||
<!--
|
||||
Wrapping the 1:1 ImageView hack in a LinearLayout allows the view to measure greedily
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/transparent"
|
||||
android:theme="@style/Theme.Widget">
|
||||
android:theme="@style/Theme.Auxio.Widget">
|
||||
|
||||
<!--
|
||||
See widget_small.xml for an explanation for the ImageView setup.
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.Auxio.App" parent="Theme.Auxio.Base" />
|
||||
|
||||
<style name="Theme.Widget" parent="@android:style/Theme.DeviceDefault.DayNight">
|
||||
<style name="Theme.Auxio.Widget" parent="@android:style/Theme.DeviceDefault.DayNight">
|
||||
<item name="colorSurface">@color/widget_surface</item>
|
||||
<item name="colorPrimary">?android:attr/colorAccent</item>
|
||||
<item name="colorOnPrimary">?attr/colorSurface</item>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</style>
|
||||
|
||||
<!-- Base theme -->
|
||||
<style name="Theme.Auxio.App" parent="Theme.Auxio.V27">
|
||||
<style name="Theme.Auxio.Base" parent="Theme.Auxio.V27">
|
||||
<!-- Values -->
|
||||
<item name="colorAccent">?attr/colorSecondary</item>
|
||||
<item name="colorOutline">@color/overlay_stroke</item>
|
||||
@@ -58,9 +58,11 @@
|
||||
<item name="textAppearanceBodySmall">@style/TextAppearance.Auxio.BodySmall</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.App" parent="@style/Theme.Auxio.Blue" />
|
||||
|
||||
<!--
|
||||
Theming widgets is technically possible below Android 12, but I *really* don't care enough
|
||||
to bother with it.
|
||||
-->
|
||||
<style name="Theme.Widget" parent="@style/Theme.Auxio.Blue" />
|
||||
<style name="Theme.Auxio.Widget" parent="@style/Theme.Auxio.Blue" />
|
||||
</resources>
|
||||
@@ -3,7 +3,7 @@
|
||||
<!--
|
||||
All the base themes/accents.
|
||||
-->
|
||||
<style name="Theme.Auxio.Red" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Red" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/red_primary</item>
|
||||
<item name="colorOnPrimary">@color/red_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/red_primary_inverse</item>
|
||||
@@ -33,7 +33,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/red_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Pink" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Pink" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/pink_primary</item>
|
||||
<item name="colorOnPrimary">@color/pink_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/pink_primary_inverse</item>
|
||||
@@ -63,7 +63,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/pink_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Purple" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Purple" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/purple_primary</item>
|
||||
<item name="colorOnPrimary">@color/purple_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/purple_primary_inverse</item>
|
||||
@@ -93,7 +93,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/purple_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.DeepPurple" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.DeepPurple" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/deep_purple_primary</item>
|
||||
<item name="colorOnPrimary">@color/deep_purple_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/deep_purple_primary_inverse</item>
|
||||
@@ -123,7 +123,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/deep_purple_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Indigo" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Indigo" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/indigo_primary</item>
|
||||
<item name="colorOnPrimary">@color/indigo_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/indigo_primary_inverse</item>
|
||||
@@ -153,7 +153,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/indigo_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Blue" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Blue" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/blue_primary</item>
|
||||
<item name="colorOnPrimary">@color/blue_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/blue_primary_inverse</item>
|
||||
@@ -183,7 +183,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/blue_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.DeepBlue" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.DeepBlue" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/deep_blue_primary</item>
|
||||
<item name="colorOnPrimary">@color/deep_blue_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/deep_blue_primary_inverse</item>
|
||||
@@ -213,7 +213,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/deep_blue_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Cyan" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Cyan" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/cyan_primary</item>
|
||||
<item name="colorOnPrimary">@color/cyan_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/cyan_primary_inverse</item>
|
||||
@@ -243,7 +243,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/cyan_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Teal" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Teal" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/teal_primary</item>
|
||||
<item name="colorOnPrimary">@color/teal_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/teal_primary_inverse</item>
|
||||
@@ -273,7 +273,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/teal_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Green" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Green" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/green_primary</item>
|
||||
<item name="colorOnPrimary">@color/green_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/green_primary_inverse</item>
|
||||
@@ -303,7 +303,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/green_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.DeepGreen" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.DeepGreen" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/deep_green_primary</item>
|
||||
<item name="colorOnPrimary">@color/deep_green_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/deep_green_primary_inverse</item>
|
||||
@@ -333,7 +333,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/deep_green_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Lime" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Lime" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/lime_primary</item>
|
||||
<item name="colorOnPrimary">@color/lime_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/lime_primary_inverse</item>
|
||||
@@ -363,7 +363,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/lime_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Yellow" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Yellow" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/yellow_primary</item>
|
||||
<item name="colorOnPrimary">@color/yellow_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/yellow_primary_inverse</item>
|
||||
@@ -393,7 +393,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/yellow_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Orange" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Orange" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/orange_primary</item>
|
||||
<item name="colorOnPrimary">@color/orange_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/orange_primary_inverse</item>
|
||||
@@ -423,7 +423,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/orange_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Brown" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Brown" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/brown_primary</item>
|
||||
<item name="colorOnPrimary">@color/brown_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/brown_primary_inverse</item>
|
||||
@@ -453,7 +453,7 @@
|
||||
<item name="colorOnSurfaceVariant">@color/brown_on_surface_variant</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Auxio.Grey" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Grey" parent="Theme.Auxio.Base">
|
||||
<item name="colorPrimary">@color/grey_primary</item>
|
||||
<item name="colorOnPrimary">@color/grey_on_primary</item>
|
||||
<item name="colorPrimaryInverse">@color/grey_primary_inverse</item>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Theme.Auxio.Black" parent="Theme.Auxio.App">
|
||||
<style name="Theme.Auxio.Black" parent="Theme.Auxio.Base">
|
||||
<item name="colorSurface">@android:color/black</item>
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user