Browse Source

Simplify outlined button style name

arkon 5 năm trước cách đây
mục cha
commit
4da760d614

+ 1 - 1
app/src/main/res/layout/extension_card_item.xml

@@ -66,7 +66,7 @@
 
         <Button
             android:id="@+id/ext_button"
-            style="@style/Theme.Widget.Button.Outlined.Accent"
+            style="@style/Theme.Widget.Button.Outlined"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginEnd="16dp"

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

@@ -248,7 +248,7 @@
         <item name="rippleColor">?attr/colorAccent</item>
     </style>
 
-    <style name="Theme.Widget.Button.Outlined.Accent" parent="Widget.MaterialComponents.Button.OutlinedButton">
+    <style name="Theme.Widget.Button.Outlined" parent="Widget.MaterialComponents.Button.OutlinedButton">
         <item name="android:textColor">?attr/colorAccent</item>
         <item name="rippleColor">?attr/colorAccent</item>
     </style>

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

@@ -53,7 +53,7 @@
         <item name="dialogTheme">@style/Theme.AlertDialog.Light</item>
         <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="buttonStyle">@style/Theme.Widget.Button.Outlined</item>
         <item name="snackbarButtonStyle">@style/Theme.Widget.Button</item>
         <item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
         <item name="textInputStyle">@style/Theme.Widget.TextInputLayout.OutlinedBox</item>
@@ -134,7 +134,7 @@
         <item name="dialogTheme">@style/Theme.AlertDialog.Dark</item>
         <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="buttonStyle">@style/Theme.Widget.Button.Outlined</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>