Răsfoiți Sursa

Adjust download badge color again

arkon 4 ani în urmă
părinte
comite
912687ac78

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt

@@ -76,6 +76,6 @@ internal class ExtensionGithubApi {
 
     companion object {
         const val BASE_URL = "https://raw.githubusercontent.com/"
-        private const val REPO_URL_PREFIX = "${BASE_URL}inorichi/tachiyomi-extensions/repo/"
+        const val REPO_URL_PREFIX = "${BASE_URL}inorichi/tachiyomi-extensions/repo/"
     }
 }

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubService.kt

@@ -37,6 +37,6 @@ interface ExtensionGithubService {
         }
     }
 
-    @GET("/inorichi/tachiyomi-extensions/repo/index.json.gz")
+    @GET("${ExtensionGithubApi.REPO_URL_PREFIX}index.json.gz")
     suspend fun getRepo(): JsonArray
 }

+ 2 - 2
app/src/main/res/layout/library_controller.xml

@@ -14,7 +14,7 @@
             android:id="@+id/downloaded_only"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:background="@color/pale_green"
+            android:background="@color/green"
             android:visibility="gone"
             tools:visibility="visible">
 
@@ -24,7 +24,7 @@
                 android:layout_gravity="center"
                 android:padding="4dp"
                 android:text="@string/label_downloaded_only"
-                android:textColor="@color/md_black_1000" />
+                android:textColor="@color/md_white_1000" />
 
         </FrameLayout>
 

+ 4 - 4
app/src/main/res/layout/source_comfortable_grid_item.xml

@@ -41,13 +41,13 @@
                     style="@style/TextAppearance.Regular.Caption"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:background="@color/pale_green"
+                    android:background="@color/green"
                     android:paddingStart="3dp"
                     android:paddingTop="1dp"
                     android:paddingEnd="3dp"
                     android:paddingBottom="1dp"
                     android:text="@string/local_source_badge"
-                    android:textColor="@color/md_black_1000"
+                    android:textColor="@color/md_white_1000"
                     android:visibility="gone"
                     tools:visibility="visible" />
 
@@ -56,12 +56,12 @@
                     style="@style/TextAppearance.Regular.Caption"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:background="@color/pale_green"
+                    android:background="@color/green"
                     android:paddingStart="3dp"
                     android:paddingTop="1dp"
                     android:paddingEnd="3dp"
                     android:paddingBottom="1dp"
-                    android:textColor="@color/md_black_1000"
+                    android:textColor="@color/md_white_1000"
                     android:visibility="gone"
                     tools:text="120"
                     tools:visibility="visible" />

+ 4 - 4
app/src/main/res/layout/source_compact_grid_item.xml

@@ -41,13 +41,13 @@
                 style="@style/TextAppearance.Regular.Caption"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:background="@color/pale_green"
+                android:background="@color/green"
                 android:paddingStart="3dp"
                 android:paddingTop="1dp"
                 android:paddingEnd="3dp"
                 android:paddingBottom="1dp"
                 android:text="@string/local_source_badge"
-                android:textColor="@color/md_black_1000"
+                android:textColor="@color/md_white_1000"
                 android:visibility="gone"
                 tools:visibility="visible" />
 
@@ -56,12 +56,12 @@
                 style="@style/TextAppearance.Regular.Caption"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:background="@color/pale_green"
+                android:background="@color/green"
                 android:paddingStart="3dp"
                 android:paddingTop="1dp"
                 android:paddingEnd="3dp"
                 android:paddingBottom="1dp"
-                android:textColor="@color/md_black_1000"
+                android:textColor="@color/md_white_1000"
                 android:visibility="gone"
                 tools:text="120"
                 tools:visibility="visible" />

+ 4 - 4
app/src/main/res/layout/source_list_item.xml

@@ -54,14 +54,14 @@
             style="@style/TextAppearance.Regular.Caption"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:background="@color/pale_green"
+            android:background="@color/green"
             android:maxLines="1"
             android:paddingStart="3dp"
             android:paddingTop="1dp"
             android:paddingEnd="3dp"
             android:paddingBottom="1dp"
             android:text="@string/local_source_badge"
-            android:textColor="@color/md_black_1000"
+            android:textColor="@color/md_white_1000"
             android:visibility="gone"
             tools:visibility="visible" />
 
@@ -70,13 +70,13 @@
             style="@style/TextAppearance.Regular.Caption"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:background="@color/pale_green"
+            android:background="@color/green"
             android:maxLines="1"
             android:paddingStart="3dp"
             android:paddingTop="1dp"
             android:paddingEnd="3dp"
             android:paddingBottom="1dp"
-            android:textColor="@color/md_black_1000"
+            android:textColor="@color/md_white_1000"
             android:visibility="gone"
             tools:text="122"
             tools:visibility="visible" />

+ 1 - 1
app/src/main/res/values/colors.xml

@@ -74,6 +74,6 @@
     <color name="md_blue_grey_900">#263238</color>
     <color name="md_blue_grey_800">#37474F</color>
 
-    <color name="pale_green">#AAE1AA</color>
+    <color name="green">#47a84a</color>
 
 </resources>