diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-09 11:04:20 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-09 11:04:20 +0300 |
| commit | 4ad6971caf93f481155d3f1923b8de97e49a0621 (patch) | |
| tree | e5fbd506aed5b60b27e34efbbc0e322172257795 /org.fox.ttrss/src/main/res/values/style.xml | |
| parent | b20acce27b05d24888e3a291f3f904bec5a28109 (diff) | |
add hack for material switches in preferences
Diffstat (limited to 'org.fox.ttrss/src/main/res/values/style.xml')
| -rw-r--r-- | org.fox.ttrss/src/main/res/values/style.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/org.fox.ttrss/src/main/res/values/style.xml b/org.fox.ttrss/src/main/res/values/style.xml index d97daff5..0b43f1d9 100644 --- a/org.fox.ttrss/src/main/res/values/style.xml +++ b/org.fox.ttrss/src/main/res/values/style.xml @@ -1,9 +1,18 @@ <resources> - <style name="shape_appearance_article_header"> + <style name="ShapeAppearanceArticleHeader"> <item name="cornerFamily">rounded</item> <item name="cornerSizeTopLeft">0dp</item> <item name="cornerSizeTopRight">0dp</item> <item name="cornerSizeBottomLeft">16dp</item> <item name="cornerSizeBottomRight">16dp</item> </style> + + <!-- https://stackoverflow.com/a/73782598 --> + <style name="AppPreferenceThemeOverlay" parent="@style/PreferenceThemeOverlay"> + <item name="switchPreferenceCompatStyle">@style/AppSwitchPreference</item> + </style> + + <style name="AppSwitchPreference" parent="@style/Preference.SwitchPreferenceCompat.Material"> + <item name="widgetLayout">@layout/preference_material_switch</item> + </style> </resources>
\ No newline at end of file |