Przeglądaj źródła

Change annotation attribute window bg and seek bar color

Wayne 5 lat temu
rodzic
commit
316c9c0315

+ 5 - 0
reader/src/main/res/color/selector_annotation_attribute_seek_bar.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="false" android:color="@color/reader_annotation_attribute_seek_bar_tint_disable"/>
+    <item android:state_enabled="true" android:color="@color/reader_annotation_attribute_seek_bar_tint_enable"/>
+</selector>

+ 1 - 1
reader/src/main/res/drawable-xxhdpi/bg_annotation_property_setting_window.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <shape xmlns:android="http://schemas.android.com/apk/res/android">
-    <solid android:color="#f5f5f5"/>
+    <solid android:color="@android:color/white"/>
     <corners android:radius="4dp"/>
 </shape>

+ 4 - 4
reader/src/main/res/layout/view_reader_annotation_property.xml

@@ -69,9 +69,9 @@
         android:paddingLeft="10dp"
         android:paddingRight="10dp"
         android:progress="3"
-        android:progressDrawable="@drawable/seekbar_img"
+        android:progressTint="@color/selector_annotation_attribute_seek_bar"
+        android:thumbTint="@color/selector_annotation_attribute_seek_bar"
         android:scrollbarStyle="insideOverlay"
-        android:thumb="@drawable/seekbar_thumb_ttpod_small"
         android:thumbOffset="7dp" />
 
     <SeekBar
@@ -89,9 +89,9 @@
         android:minHeight="1dp"
         android:paddingLeft="10dp"
         android:paddingRight="10dp"
-        android:progressDrawable="@drawable/seekbar_img"
+        android:progressTint="@color/selector_annotation_attribute_seek_bar"
+        android:thumbTint="@color/selector_annotation_attribute_seek_bar"
         android:scrollbarStyle="insideOverlay"
-        android:thumb="@drawable/seekbar_thumb_ttpod_small"
         />
 
     <android.support.constraint.Barrier

+ 2 - 0
reader/src/main/res/values/colors.xml

@@ -16,6 +16,8 @@
     <color name="reader_bottom_toolbar_bottom_color_press">@color/picton_blue</color>
     <color name="reader_right_toolbar_selected_bg">#1E000000</color>
 
+    <color name="reader_annotation_attribute_seek_bar_tint_enable">@color/bright_blue</color>
+    <color name="reader_annotation_attribute_seek_bar_tint_disable">@color/black_38</color>
     <color name="reader_annotation_color_1">#000000</color>
     <color name="reader_annotation_color_2">#296dd2</color>
     <color name="reader_annotation_color_3">#57d214</color>