From 1be8194ceffec6800135247c48d0cc4b6162ef40 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Tue, 2 Apr 2013 17:16:53 -0700 Subject: [PATCH] New text color logic for repeat and gcal control sets --- astrid/plugin-src/com/todoroo/astrid/gcal/GCalControlSet.java | 3 +++ .../com/todoroo/astrid/repeats/RepeatControlSet.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/astrid/plugin-src/com/todoroo/astrid/gcal/GCalControlSet.java b/astrid/plugin-src/com/todoroo/astrid/gcal/GCalControlSet.java index 43f706629..f5908a5cd 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gcal/GCalControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/gcal/GCalControlSet.java @@ -227,12 +227,14 @@ public class GCalControlSet extends PopupControlSet { @Override protected void refreshDisplayView() { TextView calendar = (TextView) getDisplayView().findViewById(R.id.calendar_display_which); + calendar.setTextColor(themeColor); if (initialized) { if (hasEvent) { calendar.setText(R.string.gcal_TEA_has_event); } else if (calendarSelector.getSelectedItemPosition() != 0) { calendar.setText((String)calendarSelector.getSelectedItem()); } else { + calendar.setTextColor(unsetColor); calendar.setText(R.string.gcal_TEA_none_selected); } } else { @@ -242,6 +244,7 @@ public class GCalControlSet extends PopupControlSet { } else if (index >= 0 && index < calendars.calendars.length) { calendar.setText(calendars.calendars[index]); } else { + calendar.setTextColor(unsetColor); calendar.setText(R.string.gcal_TEA_none_selected); } } diff --git a/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatControlSet.java b/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatControlSet.java index 803f19949..ffa82e60c 100644 --- a/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatControlSet.java @@ -407,8 +407,10 @@ public class RepeatControlSet extends PopupControlSet { TypedValue repeatIcon = new TypedValue(); activity.getTheme().resolveAttribute(R.attr.asRepeatIcon, repeatIcon, false); repeatImage.setImageResource(repeatIcon.data); + repeatDisplay.setTextColor(themeColor); } else { + repeatDisplay.setTextColor(unsetColor); repeatDisplay.setText(R.string.repeat_never); repeatImage.setImageResource(R.drawable.icn_edit_repeats); }