From 9bd3a0d02efe749c6d4f1786d29a9e57db03b34e Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 21 Feb 2020 09:07:50 -0600 Subject: [PATCH] Use accent color in repeat picker --- .../main/java/org/tasks/repeats/CustomRecurrenceDialog.java | 4 ++-- app/src/main/res/layout/control_set_repeat.xml | 4 ++-- app/src/main/res/values-night/theme_dark_grey.xml | 2 -- app/src/main/res/values/attrs.xml | 2 -- app/src/main/res/values/theme.xml | 2 -- app/src/main/res/values/theme_white.xml | 2 -- 6 files changed, 4 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/org/tasks/repeats/CustomRecurrenceDialog.java b/app/src/main/java/org/tasks/repeats/CustomRecurrenceDialog.java index 328972601..68970342b 100644 --- a/app/src/main/java/org/tasks/repeats/CustomRecurrenceDialog.java +++ b/app/src/main/java/org/tasks/repeats/CustomRecurrenceDialog.java @@ -300,11 +300,11 @@ public class CustomRecurrenceDialog extends InjectingDialogFragment { new int[] {android.R.attr.state_checked}, new int[] {-android.R.attr.state_checked} }, new int[] { - ResourceResolver.getData(context, R.attr.weekdayButtonText), + ResourceResolver.getData(context, R.attr.colorOnSecondary), getColor(context, R.color.text_primary) }); int inset = (int) context.getResources().getDimension(R.dimen.week_button_inset); - int accentColor = ResourceResolver.getData(context, R.attr.weekdayButtonBackground); + int accentColor = ResourceResolver.getData(context, R.attr.colorAccent); int animationDuration = context.getResources().getInteger(android.R.integer.config_shortAnimTime); diff --git a/app/src/main/res/layout/control_set_repeat.xml b/app/src/main/res/layout/control_set_repeat.xml index 1f28aaa0f..fd9faeb21 100644 --- a/app/src/main/res/layout/control_set_repeat.xml +++ b/app/src/main/res/layout/control_set_repeat.xml @@ -17,7 +17,7 @@ + android:background="?attr/colorAccent"> + app:backgroundTint="?attr/colorOnSecondary"/> diff --git a/app/src/main/res/values-night/theme_dark_grey.xml b/app/src/main/res/values-night/theme_dark_grey.xml index 099f988ac..598242f8c 100644 --- a/app/src/main/res/values-night/theme_dark_grey.xml +++ b/app/src/main/res/values-night/theme_dark_grey.xml @@ -9,8 +9,6 @@ @color/button_accent_background @color/button_accent_ripple @color/button_accent_stroke - ?attr/colorAccent - ?attr/colorOnSecondary \ No newline at end of file diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index a8793532c..59baa4bba 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -13,8 +13,6 @@ - - diff --git a/app/src/main/res/values/theme.xml b/app/src/main/res/values/theme.xml index 92fe02c9d..fff4f4d91 100644 --- a/app/src/main/res/values/theme.xml +++ b/app/src/main/res/values/theme.xml @@ -27,8 +27,6 @@ @color/mtrl_btn_text_btn_bg_color_selector @color/mtrl_btn_text_btn_ripple_color @color/mtrl_btn_stroke_color_selector - ?attr/colorPrimary - ?attr/colorOnPrimary 2 @style/PreferenceTheme diff --git a/app/src/main/res/values/theme_white.xml b/app/src/main/res/values/theme_white.xml index 64d89e45d..8f3f8f596 100644 --- a/app/src/main/res/values/theme_white.xml +++ b/app/src/main/res/values/theme_white.xml @@ -14,8 +14,6 @@ @color/button_accent_background @color/button_accent_ripple @color/button_accent_stroke - ?attr/colorAccent - ?attr/colorOnSecondary \ No newline at end of file