Эх сурвалжийг харах

Change button text color from black to system text color

This commit changes the button text color from black(#000000) to a prominent text color that varies depending on the theme settings.
czlucius 4 жил өмнө
parent
commit
125bc3089d

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

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