ui: fix material issues
Migrate dividers over to material theming alongside making detail items use a colorStateList instead of manually indexing for text colors.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
app:cardBackgroundColor="?attr/colorSurface"
|
||||
app:cardCornerRadius="0dp"
|
||||
app:cardElevation="0dp"
|
||||
app:strokeColor="@color/divider"
|
||||
app:strokeColor="@color/overlay_divider"
|
||||
app:strokeWidth="1dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
android:contentDescription="@string/desc_shuffle"
|
||||
android:onClick="@{() -> playbackModel.invertShuffleStatus()}"
|
||||
android:src="@drawable/ic_shuffle"
|
||||
app:tint="@color/color_accent_active"
|
||||
app:tint="@color/sel_accent_active"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/playback_skip_next"
|
||||
app:layout_constraintEnd_toEndOf="@+id/playback_song_duration"
|
||||
app:layout_constraintTop_toTopOf="@+id/playback_skip_next" />
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".ui.HeaderViewHolder">
|
||||
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
@@ -13,8 +14,7 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/ui_header_dividers">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/header_title"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
android:text="@{String.valueOf(song.track)}"
|
||||
android:textAlignment="center"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:textColor="?android:attr/textColorTertiary"
|
||||
android:textColor="@color/sel_accented_track"
|
||||
android:textSize="@dimen/text_size_large"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -35,6 +35,7 @@
|
||||
android:id="@+id/song_name"
|
||||
style="@style/Widget.TextView.Item.Primary"
|
||||
android:text="@{song.name}"
|
||||
android:textColor="@color/sel_accented_primary"
|
||||
app:layout_constraintBottom_toTopOf="@+id/song_duration"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/song_track"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<TextView
|
||||
android:id="@+id/album_name"
|
||||
style="@style/Widget.TextView.Item.Primary"
|
||||
android:textColor="@color/sel_accented_primary"
|
||||
android:text="@{album.name}"
|
||||
app:layout_constraintBottom_toTopOf="@+id/album_year"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<TextView
|
||||
android:id="@+id/song_name"
|
||||
style="@style/Widget.TextView.Item.Primary"
|
||||
android:textColor="@color/sel_accented_primary"
|
||||
android:layout_marginEnd="@dimen/spacing_medium"
|
||||
android:text="@{song.name}"
|
||||
app:layout_constraintBottom_toTopOf="@+id/song_info"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<TextView
|
||||
android:id="@+id/song_name"
|
||||
style="@style/Widget.TextView.Item.Primary"
|
||||
android:textColor="@color/sel_accented_primary"
|
||||
android:layout_marginEnd="@dimen/spacing_medium"
|
||||
android:text="@{song.name}"
|
||||
app:layout_constraintBottom_toTopOf="@+id/song_info"
|
||||
|
||||
Reference in New Issue
Block a user