styles: refactor styles

Refactor styles again, this time trying to seperate the more
layout-specific attributes so that layouts become more re-usable.
This also updates the naming conventions of styles.
This commit is contained in:
OxygenCobalt
2021-08-06 09:36:56 -06:00
parent b51ec756de
commit 828ab3ccee
101 changed files with 2000 additions and 1948 deletions
+13 -13
View File
@@ -9,22 +9,22 @@
<ImageView
android:id="@+id/widget_cover"
style="@style/FluidImageView"
android:contentDescription="@string/description_no_cover"
style="@style/Widget.Component.AppWidget.ImageView"
android:contentDescription="@string/desc_no_cover"
android:src="@drawable/ic_song" />
<LinearLayout
style="@style/WidgetPanel">
style="@style/Widget.Component.AppWidget.Panel.Base">
<TextView
android:id="@+id/widget_song"
style="@style/Widget.TextView.Widget.Primary"
android:text="@string/placeholder_widget_song" />
style="@style/Widget.Component.AppWidget.TextView.Primary"
android:text="@string/def_widget_song" />
<TextView
android:id="@+id/widget_artist"
style="@style/Widget.TextView.Widget.Secondary"
android:text="@string/placeholder_widget_artist" />
style="@style/Widget.Component.AppWidget.TextView.Secondary"
android:text="@string/def_widget_artist" />
<LinearLayout
android:layout_width="match_parent"
@@ -33,20 +33,20 @@
<ImageButton
android:id="@+id/widget_skip_prev"
style="@style/Widget.Button.Unbounded.Widget"
android:contentDescription="@string/description_skip_prev"
style="@style/Widget.Component.AppWidget.Button"
android:contentDescription="@string/desc_skip_prev"
android:src="@drawable/ic_skip_prev" />
<ImageButton
android:id="@+id/widget_play_pause"
style="@style/Widget.Button.Unbounded.Widget"
android:contentDescription="@string/description_play_pause"
style="@style/Widget.Component.AppWidget.Button"
android:contentDescription="@string/desc_play_pause"
android:src="@drawable/ic_play" />
<ImageButton
android:id="@+id/widget_skip_next"
style="@style/Widget.Button.Unbounded.Widget"
android:contentDescription="@string/description_skip_next"
style="@style/Widget.Component.AppWidget.Button"
android:contentDescription="@string/desc_skip_next"
android:src="@drawable/ic_skip_next" />
</LinearLayout>