Browse Source

Tweak dark theme snackbar (closes #2699)

arkon 5 years ago
parent
commit
9c44cae5b8
2 changed files with 3 additions and 2 deletions
  1. 2 0
      app/src/main/res/values/styles.xml
  2. 1 2
      app/src/main/res/values/themes.xml

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

@@ -202,6 +202,8 @@
 
     <style name="Theme.Widget.Snackbar" parent="Widget.MaterialComponents.Snackbar">
         <item name="android:background">@drawable/snackbar_bg</item>
+        <item name="android:textAppearance">@style/TextAppearance.Widget.Menu</item>
+        <item name="actionTextColorAlpha">1</item>
     </style>
 
 

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

@@ -131,6 +131,7 @@
         <item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
         <item name="chipStyle">@style/Theme.Widget.Chip</item>
         <item name="buttonStyle">@style/Theme.Widget.Button.Outlined.Accent</item>
+        <item name="snackbarStyle">@style/Theme.Widget.Snackbar</item>
         <item name="snackbarButtonStyle">@style/Theme.Widget.Button</item>
         <item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
         <item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
@@ -166,8 +167,6 @@
         <item name="android:navigationBarColor">@android:color/transparent</item>
 
         <!-- Themes -->
-        <!-- Surface-colored snackbar -->
-        <item name="snackbarStyle">@style/Theme.Widget.Snackbar</item>
         <item name="md_background_color">@color/colorAmoledPrimary</item>
 
         <!-- Custom Attributes-->