Pārlūkot izejas kodu

Adjust CardView styles

arkon 3 gadi atpakaļ
vecāks
revīzija
9600675677

+ 1 - 2
app/src/main/res/layout/categories_item.xml

@@ -7,8 +7,7 @@
     android:layout_height="wrap_content"
     app:cardBackgroundColor="?android:attr/colorBackground"
     app:cardElevation="0dp"
-    app:cardForegroundColor="@color/draggable_card_foreground"
-    app:strokeWidth="0dp">
+    app:cardForegroundColor="@color/draggable_card_foreground">
 
     <LinearLayout
         android:layout_width="match_parent"

+ 1 - 2
app/src/main/res/layout/download_header.xml

@@ -8,8 +8,7 @@
     android:layout_marginTop="8dp"
     app:cardBackgroundColor="?android:attr/colorBackground"
     app:cardElevation="0dp"
-    app:cardForegroundColor="@color/draggable_card_foreground"
-    app:strokeWidth="0dp">
+    app:cardForegroundColor="@color/draggable_card_foreground">
 
     <LinearLayout
         android:layout_width="match_parent"

+ 1 - 2
app/src/main/res/layout/download_item.xml

@@ -7,8 +7,7 @@
     android:layout_height="wrap_content"
     app:cardBackgroundColor="?android:attr/colorBackground"
     app:cardElevation="0dp"
-    app:cardForegroundColor="@color/draggable_card_foreground"
-    app:strokeWidth="0dp">
+    app:cardForegroundColor="@color/draggable_card_foreground">
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="match_parent"

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

@@ -14,7 +14,6 @@
         android:layout_height="48dp"
         app:cardBackgroundColor="#2E51A2"
         app:cardElevation="0dp"
-        app:strokeWidth="0dp"
         app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.MaterialCardView.Tracker">
 
         <ImageView

+ 1 - 1
app/src/main/res/layout/track_item.xml

@@ -22,7 +22,6 @@
             android:layout_height="48dp"
             app:cardBackgroundColor="#2E51A2"
             app:cardElevation="0dp"
-            app:strokeWidth="0dp"
             app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.MaterialCardView.Tracker">
 
             <ImageView
@@ -79,6 +78,7 @@
 
     <com.google.android.material.card.MaterialCardView
         android:id="@+id/card"
+        style="@style/Widget.Material3.CardView.Outlined"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginTop="8dp"

+ 1 - 0
app/src/main/res/values/themes.xml

@@ -85,6 +85,7 @@
         <item name="navigationRailStyle">@style/Widget.Tachiyomi.NavigationRailView</item>
         <item name="switchStyle">@style/Widget.Tachiyomi.Switch</item>
         <item name="sliderStyle">@style/Widget.Tachiyomi.Slider</item>
+        <item name="materialCardViewStyle">@style/Widget.Material3.CardView.Elevated</item>
         <item name="elevationOverlayEnabled">false</item>
         <item name="lightSystemBarsOnPrimary">false</item>