Forráskód Böngészése

Don't capitalize buttons (closes #3454)

arkon 4 éve
szülő
commit
d8f4e6b45f

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

@@ -242,12 +242,14 @@
     <style name="Theme.Widget.Button" parent="Widget.MaterialComponents.Button.TextButton">
         <item name="android:textColor">?attr/colorAccent</item>
         <item name="rippleColor">?attr/colorAccent</item>
+        <item name="android:textAllCaps">false</item>
     </style>
 
     <style name="Theme.Widget.Button.FilledAccent" parent="Widget.MaterialComponents.Button">
         <item name="android:textColor">?attr/colorOnSecondary</item>
         <item name="backgroundTint">?attr/colorAccent</item>
         <item name="rippleColor">?attr/colorAccent</item>
+        <item name="android:textAllCaps">false</item>
     </style>
 
     <style name="Theme.Widget.Button.Icon" parent="Widget.MaterialComponents.Button.OutlinedButton.Icon">

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

@@ -67,6 +67,7 @@
         <item name="md_color_title">?attr/colorOnSurface</item>
         <item name="md_color_content">?attr/colorOnSurface</item>
         <item name="md_color_button_text">?attr/colorAccent</item>
+        <item name="md_button_casing">literal</item>
         <item name="md_corner_radius">@dimen/card_radius</item>
 
         <!-- Custom Attributes-->
@@ -151,6 +152,7 @@
         <item name="md_color_title">?attr/colorOnSurface</item>
         <item name="md_color_content">?attr/colorOnSurface</item>
         <item name="md_color_button_text">?attr/colorAccent</item>
+        <item name="md_button_casing">literal</item>
         <item name="md_corner_radius">@dimen/card_radius</item>
 
         <!-- Custom Attributes-->