Consistent divider colour

This commit is contained in:
arkon 2022-02-12 13:24:20 -05:00
parent e214746536
commit 9120e82517
3 changed files with 16 additions and 3 deletions

View File

@ -4,16 +4,20 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorSurface"
android:elevation="2dp"
android:padding="32dp">
android:background="?attr/colorSurface">
<ImageView
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_gravity="center"
android:layout_margin="32dp"
app:srcCompat="@drawable/ic_tachi"
app:tint="?attr/colorOnSurface"
tools:ignore="ContentDescription" />
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" />
</FrameLayout>

View File

@ -155,6 +155,14 @@
<style name="Widget.Tachiyomi.Button.OutlinedButton" parent="Widget.Material3.Button.OutlinedButton" />
<!--=======================-->
<!--Widgets.MaterialDivider-->
<!--=======================-->
<style name="Widget.Tachiyomi.MaterialDivider" parent="Widget.Material3.MaterialDivider">
<item name="dividerColor">@color/divider_default</item>
</style>
<!--=================-->
<!--Widgets.TabLayout-->
<!--=================-->

View File

@ -40,6 +40,7 @@
<item name="android:divider">@color/divider_default</item>
<item name="android:listDivider">@drawable/line_divider</item>
<item name="materialDividerStyle">@style/Widget.Tachiyomi.MaterialDivider</item>
<!-- Ripples -->
<item name="colorControlHighlight">?attr/colorSurfaceVariant</item>