Browse Source

Fix selected tab in sheets not being the accent color

arkon 4 years ago
parent
commit
3aeac7e7b5

+ 1 - 1
app/src/main/res/color/tabs_selector_background.xml

@@ -5,6 +5,6 @@
   Ensures visibility on top of the background color.
 -->
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:color="?attr/colorOnBackground" android:state_selected="true"/>
+    <item android:color="?attr/colorAccent" android:state_selected="true"/>
     <item android:alpha="0.60" android:color="?attr/colorOnBackground"/>
 </selector>

+ 1 - 0
app/src/main/res/layout/common_tabbed_sheet.xml

@@ -22,6 +22,7 @@
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintTop_toTopOf="parent"
             app:tabTextColor="@color/tabs_selector_background"
+            app:tabIndicatorColor="?attr/colorAccent"
             app:tabGravity="fill"
             app:tabMode="fixed" />