summaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-05-07 11:28:41 +0200
committerGitHub <noreply@github.com>2023-05-07 11:28:41 +0200
commitb8a1c1f49ac57a6c0cee9ccab45f565e6bf6b67f (patch)
treec94b8e1806e9148a96e21285d60b9b4950f671f7 /core/src/main
parentda16f13e8bcaa92333557823eef23f7c15636555 (diff)
downloadAntennaPod-b8a1c1f49ac57a6c0cee9ccab45f565e6bf6b67f.zip
Let filter button height grow (#6477)
Also, make it easier to see what option is selected
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/res/color/button_bg_selector.xml6
-rw-r--r--core/src/main/res/values/styles.xml4
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>