diff options
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/res/color/button_bg_selector.xml | 6 | ||||
-rw-r--r-- | core/src/main/res/values/styles.xml | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/core/src/main/res/color/button_bg_selector.xml b/core/src/main/res/color/button_bg_selector.xml new file mode 100644 index 000000000..f416daa72 --- /dev/null +++ b/core/src/main/res/color/button_bg_selector.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- Difference to Material Components: alpha is 0.3 instead of 0.08 --> + <item android:alpha="0.3" android:color="?attr/colorPrimary" android:state_checked="true"/> + <item android:color="@android:color/transparent" android:state_checked="false"/> +</selector>
\ No newline at end of file diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 6e1335706..0ebf2aaf7 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -253,6 +253,10 @@ <item name="android:ellipsize">end</item> </style> + <style name="OutlinedButtonBetterContrast" parent="Widget.Material3.Button.OutlinedButton"> + <item name="backgroundTint">@color/button_bg_selector</item> + </style> + <style name="ProgressBarLight"> <item name="android:indeterminateOnly">false</item> <item name="android:progressDrawable">@drawable/progress_bar_horizontal_light</item> |