瀏覽代碼

Use default snackbar styles (fixes unreadable text)

Sorry AMOLED users, you'll just have to deal with the brief light snackbars.
arkon 3 年之前
父節點
當前提交
dc39669321

+ 0 - 6
app/src/main/res/drawable/snackbar_background.xml

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

+ 0 - 9
app/src/main/res/values/styles.xml

@@ -102,15 +102,6 @@
     </style>
 
 
-    <style name="Widget.Tachiyomi.Snackbar" parent="Widget.Material3.Snackbar">
-        <item name="android:background">@drawable/snackbar_background</item>
-        <item name="actionTextColorAlpha">1</item>
-    </style>
-    <style name="Widget.Tachiyomi.Snackbar.TextView" parent="Widget.Material3.Snackbar.TextView">
-        <item name="android:textColor">?attr/colorOnSurface</item>
-    </style>
-
-
     <style name="Widget.Tachiyomi.Chip.Action" parent="Widget.Material3.Chip.Suggestion">
         <item name="chipBackgroundColor">?attr/chipBackgroundColor</item>
         <item name="android:textColor">?attr/chipTextColor</item>

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

@@ -74,8 +74,6 @@
         <item name="chipStyle">@style/Widget.Tachiyomi.Chip.Action</item>
         <item name="chipTextColor">?android:attr/textColorPrimary</item>
         <item name="chipBackgroundColor">?android:attr/divider</item>
-        <item name="snackbarStyle">@style/Widget.Tachiyomi.Snackbar</item>
-        <item name="snackbarTextViewStyle">@style/Widget.Tachiyomi.Snackbar.TextView</item>
         <item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>
         <item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item>
         <item name="toolbarStyle">@style/Widget.Material3.Toolbar.Surface</item>