Explorar o código

Change alert dialog button text color

This commit changes the text color of the AlertDialog's buttons from `?android:attr/textColorPrimary` to `@color/text_color`.
This ensures that the button text can be readable throughout all themes.
czlucius %!s(int64=4) %!d(string=hai) anos
pai
achega
2cad7849ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/res/values/styles.xml

+ 1 - 1
src/main/res/values/styles.xml

@@ -86,7 +86,7 @@
 
     <style name="FallbackTheming.Dialog.ButtonStyle"
         parent="Widget.MaterialComponents.Button.TextButton.Dialog">
-        <item name="android:textColor">?android:attr/textColorPrimary</item>
+        <item name="android:textColor">@color/text_color</item>
     </style>
 
 	<!-- separate action bar style for activities without an action bar -->