ui: rework resource distribution

Try to remove the weird config file and replace it with more
conventional resource files in other places.
This commit is contained in:
OxygenCobalt
2022-08-05 09:58:20 -06:00
parent 7d04aad9b7
commit e12c7cb419
25 changed files with 59 additions and 156 deletions
+6
View File
@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- This is for HomeFragment's AppBarLayout. Explanations for these can be found there. -->
<item name="home_song_list" type="id" />
<item name="home_album_list" type="id" />
<item name="home_artist_list" type="id" />
<item name="home_genre_list" type="id" />
<declare-styleable name="StyledImageView">
<attr name="cornerRadius" format="dimension" />
<attr name="staticIcon" format="reference" />
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="enable_theme_settings">true</bool>
<integer name="recycler_spans">1</integer>
<integer name="detail_app_bar_title_anim_duration">150</integer>
</resources>
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- This is for BottomSheetLayout -->
<item name="bottom_sheet_view" type="id" />
<!-- This is for HomeFragment's AppBarLayout. Explanations for these can be found there. -->
<item name="home_song_list" type="id" />
<item name="home_album_list" type="id" />
<item name="home_artist_list" type="id" />
<item name="home_genre_list" type="id" />
</resources>
+1 -4
View File
@@ -42,10 +42,6 @@
<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>
@@ -63,6 +59,7 @@
<item name="actionOverflowButtonStyle">@style/Widget.Auxio.Button.Overflow</item>
</style>
<!-- Make sure blue is the default style instead of material purple -->
<style name="Theme.Auxio.App" parent="@style/Theme.Auxio.Blue" />
<!--
+11 -1
View File
@@ -79,7 +79,17 @@
<item name="android:focusable">true</item>
</style>
<style name="Widget.Auxio.RecyclerView.WithAdaptiveFab" parent="">
<style name="Widget.Auxio.RecyclerView.Linear" parent="">
<item name="layoutManager">androidx.recyclerview.widget.LinearLayoutManager</item>
</style>
<style name="Widget.Auxio.RecyclerView.Grid.Base" parent="">
<item name="layoutManager">androidx.recyclerview.widget.GridLayoutManager</item>
</style>
<style name="Widget.Auxio.RecyclerView.Grid" parent="Widget.Auxio.RecyclerView.Grid.Base" />
<style name="Widget.Auxio.RecyclerView.Grid.WithAdaptiveFab" parent="Widget.Auxio.RecyclerView.Grid">
<item name="android:paddingBottom">@dimen/recycler_fab_space_normal</item>
</style>