Change setting ripple color

Change the ripple on the settings to a generally neutral color instead of the gaudy colorPrimary.
This commit is contained in:
OxygenCobalt
2020-11-29 14:43:37 -07:00
parent e15df4ce73
commit 59036a2747
23 changed files with 169 additions and 77 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="theme_entries">
<item>@string/label_settings_theme_auto</item>
<item>@string/label_settings_theme_light</item>
<item>@string/label_settings_theme_dark</item>
<item>@string/setting_theme_auto</item>
<item>@string/setting_theme_day</item>
<item>@string/setting_theme_night</item>
</array>
<array name="theme_values">
+12 -8
View File
@@ -27,14 +27,18 @@
<string name="label_next_user_queue">Next in Queue</string>
<string name="label_channel">Music Playback</string>
<string name="label_service_playback">The music playback service for Auxio.</string>
<string name="label_settings">Settings</string>
<string name="label_settings_ui">Appearance</string>
<string name="label_settings_theme">Theme</string>
<string name="label_settings_theme_auto">Automatic</string>
<string name="label_settings_theme_light">Light</string>
<string name="label_settings_theme_dark">Dark</string>
<string name="label_settings_theme_choose">Choose theme</string>
<string name="label_settings_accent">Accent</string>
<!-- Settings namespace | Settings-related labels -->
<string name="setting_title">Settings</string>
<string name="setting_ui">Appearance</string>
<string name="setting_theme">Theme</string>
<string name="setting_theme_auto">Automatic</string>
<string name="setting_theme_day">Light</string>
<string name="setting_theme_night">Dark</string>
<string name="setting_accent">Accent</string>
<string name="setting_edge">Edge-To-Edge</string>
<string name="setting_edge_desc_on">Disable edge-to-edge</string>
<string name="setting_edge_desc_off">Enable edge-to-edge</string>
<!-- Debug Namespace | Debug labels -->
<string name="debug_state_saved">State saved</string>
+11
View File
@@ -13,12 +13,17 @@
<item name="colorControlNormal">@color/control_color</item>
<item name="alertDialogTheme">@style/Theme.CustomDialog</item>
<item name="indicatorFastScrollerStyle">@style/FastScrollTheme</item>
<item name="colorControlActivated">?attr/colorPrimary</item>
<item name="colorControlHighlight">?attr/colorPrimary</item>
<item name="preferenceTheme">@style/Theme.Preference</item>
<item name="md_divider_color">@android:color/transparent</item>
<item name="md_background_color">@color/background</item>
<item name="md_corner_radius">0dp</item>
<item name="md_color_button_text">@color/control_color</item>
<item name="md_font_title">@font/inter_black</item>
<item name="android:activatedBackgroundIndicator">@drawable/ui_ripple</item>
</style>
<!-- Hack to fix the weird icon/underline with LibraryFragment's SearchView -->
@@ -83,6 +88,12 @@
<item name="android:textSize">18sp</item>
</style>
<style name="Theme.Preference" parent="PreferenceThemeOverlay">
<item name="rippleColor">@color/selection_color</item>
<item name="itemRippleColor">@color/selection_color</item>
<item name="tabRippleColor">@color/selection_color</item>
</style>
<!--
Fix to get QueueFragment to not overlap the Status Bar or Navigation Bar [Currently unused but still here]
https://stackoverflow.com/a/57790787/14143986