all: clean up resources
Clean up resource implementations, removing useless attributes and simplifying layouts.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Note: Not actually transparent, making it transparent would actually make it translucent -->
|
||||
<!-- Note: Not actually transparent, making it transparent would actually make it translucent
|
||||
TODO: Can actually disable the contrast check on some newer versions -->
|
||||
<color name="chrome_transparent">#01fafafa</color>
|
||||
<color name="chrome_translucent">#80000000</color>
|
||||
<color name="remote_translucent">#80ffffff</color>
|
||||
|
||||
<color name="widget_surface">@color/material_dynamic_primary95</color>
|
||||
<color name="widget_surface_inverse">@color/material_dynamic_neutral80</color>
|
||||
<color name="widget_surface_inverse">@color/material_dynamic_neutral20</color>
|
||||
<color name="widget_on_surface_inverse">@color/material_dynamic_neutral95</color>
|
||||
|
||||
<color name="red_primary">#BC1714</color>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<string name="set_key_reindex" translatable="false">auxio_reindex</string>
|
||||
<string name="set_key_music_dirs" translatable="false">auxio_music_dirs</string>
|
||||
<string name="set_key_music_dirs_include" translatable="false">auxio_include_dirs</string>
|
||||
<string name="set_key_observing">auxio_observing</string>
|
||||
<string name="set_key_observing" translatable="false">auxio_observing</string>
|
||||
<string name="set_key_quality_tags" translatable="false">auxio_quality_tags</string>
|
||||
|
||||
<string name="set_key_search_filter" translatable="false">KEY_SEARCH_FILTER</string>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- ANDROID COMPONENT-SPECIFIC STYLES.-->
|
||||
|
||||
<style name="Theme.Auxio.Dialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
|
||||
<item name="android:checkedTextViewStyle">@style/Widget.Auxio.Dialog.CheckedTextView</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog
|
||||
</item>
|
||||
<item name="buttonBarNegativeButtonStyle">@style/Widget.Material3.Button.TextButton.Dialog
|
||||
</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.Auxio.Dialog.Button.Flush</item>
|
||||
</style>
|
||||
|
||||
<!-- The style for the checked text view in the custom dialog -->
|
||||
@@ -16,15 +11,13 @@
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
</style>
|
||||
|
||||
<!-- Custom button style that eliminates the weird margin that the neutral button has -->
|
||||
<style name="Widget.Auxio.Dialog.Button.Flush" parent="Widget.Material3.Button.TextButton.Dialog">
|
||||
<item name="android:layout_marginStart">0dp</item>
|
||||
</style>
|
||||
|
||||
<!-- Dialog style that properly implements dividers in a NestedScrollView -->
|
||||
<style name="Widget.Auxio.Dialog.NestedScrollView" parent="">
|
||||
<item name="android:overScrollMode">never</item>
|
||||
<item name="android:paddingTop">@dimen/spacing_medium</item>
|
||||
|
||||
<!-- API 23+ specific -->
|
||||
<item name="android:scrollIndicators" tools:ignore="NewApi">top|bottom</item>
|
||||
</style>
|
||||
|
||||
<!-- Widget TextView that mimics the main Auxio Primary/Secondary TextViews. -->
|
||||
@@ -51,7 +44,7 @@
|
||||
</style>
|
||||
|
||||
<!-- A variant of button that emulates a FAB-ish button that plays along with widget restrictions -->
|
||||
<style name="Widget.Auxio.FloatingActionButton.AppWidget" parent="Widget.AppCompat.Button.Borderless">
|
||||
<style name="Widget.Auxio.MaterialButton.AppWidget.PlayPause" parent="Widget.AppCompat.Button.Borderless">
|
||||
<item name="android:minWidth">@dimen/size_btn</item>
|
||||
<item name="android:background">@drawable/ui_remote_fab_bg</item>
|
||||
<item name="android:tint">?attr/colorOnPrimary</item>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Master parent theme -->
|
||||
<!-- TODO: Make the app theme blue before dynamic colors -->
|
||||
<style name="Theme.Auxio" parent="Theme.Material3.DynamicColors.DayNight" />
|
||||
<!-- Template theme that handles edge-to-edge on other styles variants -->
|
||||
<style name="Theme.Auxio.V27" parent="Theme.Auxio">
|
||||
@@ -32,7 +33,6 @@
|
||||
<item name="materialAlertDialogTheme">@style/Theme.Auxio.Dialog</item>
|
||||
<item name="sliderStyle">@style/Widget.Auxio.Slider</item>
|
||||
<item name="linearProgressIndicatorStyle">@style/Widget.Auxio.LinearProgressIndicator</item>
|
||||
<item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>
|
||||
<item name="toolbarNavigationButtonStyle">@style/Widget.Auxio.Toolbar.Navigation</item>
|
||||
<item name="actionOverflowButtonStyle">@style/Widget.Auxio.Button.Overflow</item>
|
||||
|
||||
|
||||
@@ -218,7 +218,9 @@
|
||||
<item name="android:paddingEnd">@dimen/spacing_mid_large</item>
|
||||
<item name="android:paddingTop">@dimen/spacing_mid_large</item>
|
||||
<item name="android:paddingBottom">@dimen/spacing_mid_large</item>
|
||||
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.FloatingActionButton</item>
|
||||
<item name="shapeAppearanceOverlay">
|
||||
@style/ShapeAppearanceOverlay.Material3.FloatingActionButton
|
||||
</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Auxio.FloatingActionButton.Adaptive" parent="Widget.Material3.FloatingActionButton.Primary">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--
|
||||
Auxio leverages the Material3 Text Appearances in a strange way, mostly driven by
|
||||
the author's perception of what looks "right." Guides for usage are placed next to
|
||||
each set of styles.
|
||||
Typography is derived from Inter and it's size-dependent spacing calculation. Auxio does not
|
||||
completely adhere to the typography system, sometimes having two variants of a given style in
|
||||
order to bypass the restrictive nature of the default typography.
|
||||
-->
|
||||
|
||||
<!--
|
||||
@@ -31,7 +31,7 @@
|
||||
</style>
|
||||
|
||||
<!--
|
||||
Headline styles are similar to title styles, but are used on tablets.
|
||||
Headline styles are similar to title styles, but are not used as often.
|
||||
-->
|
||||
<style name="TextAppearance.Auxio.HeadlineLarge" parent="TextAppearance.Material3.HeadlineLarge">
|
||||
<item name="fontFamily">@font/inter_semibold</item>
|
||||
@@ -55,7 +55,7 @@
|
||||
</style>
|
||||
|
||||
<!--
|
||||
Title styles are often used for headers and dividing elements.
|
||||
Title styles are often used for headers, dividing elements, and items.
|
||||
-->
|
||||
<style name="TextAppearance.Auxio.TitleLarge" parent="TextAppearance.Material3.TitleLarge">
|
||||
<item name="fontFamily">@font/inter_semibold</item>
|
||||
|
||||
Reference in New Issue
Block a user