Browse Source

Adjust reader navigation button ripples

arkon 4 years ago
parent
commit
6fd4af8736

+ 1 - 1
app/src/main/res/drawable/reader_seekbar_background.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <shape xmlns:android="http://schemas.android.com/apk/res/android"
     android:shape="rectangle">
-    <corners android:radius="48dp" />
+    <corners android:radius="?attr/actionBarSize" />
     <solid android:color="?attr/colorPrimary" />
 </shape>

+ 6 - 2
app/src/main/res/drawable/reader_seekbar_ripple.xml

@@ -1,10 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
 <ripple xmlns:android="http://schemas.android.com/apk/res/android"
     android:color="?attr/colorOnPrimary">
+
     <item android:id="@android:id/mask">
         <shape android:shape="rectangle">
-            <solid android:color="@android:color/white" />
-            <corners android:radius="48dp" />
+            <solid android:color="?attr/colorControlActivated" />
+            <corners android:radius="?attr/actionBarSize" />
         </shape>
     </item>
+
+    <item android:drawable="@drawable/reader_seekbar_background" />
+
 </ripple>