diff --git a/astrid/res/drawable/importance_background_selected.xml b/astrid/res/drawable/importance_background_selected.xml index cf0f8c142..dabd34feb 100644 --- a/astrid/res/drawable/importance_background_selected.xml +++ b/astrid/res/drawable/importance_background_selected.xml @@ -7,10 +7,7 @@ - + android:color="#eee"/> + + + + + + diff --git a/astrid/src/com/todoroo/astrid/service/ThemeService.java b/astrid/src/com/todoroo/astrid/service/ThemeService.java index 9973fd1ed..52dc5d430 100644 --- a/astrid/src/com/todoroo/astrid/service/ThemeService.java +++ b/astrid/src/com/todoroo/astrid/service/ThemeService.java @@ -254,22 +254,20 @@ public class ThemeService { ContextManager.getResources().getResourceName(lightDrawable)); } - public static int getTaskEditDrawable(int regularDrawable, int lightBlueDrawable) { + public static int getDarkVsLight(int resForWhite, int resForDark) { int theme = getTheme(); if (theme == R.style.Theme || theme == R.style.Theme_White_Alt || theme == R.style.Theme_TransparentWhite) { - return lightBlueDrawable; + return resForDark; } else { - return regularDrawable; + return resForWhite; } } + public static int getTaskEditDrawable(int regularDrawable, int lightBlueDrawable) { + return getDarkVsLight(regularDrawable, lightBlueDrawable); + } public static int getTaskEditThemeColor() { - int theme = getTheme(); - if (theme == R.style.Theme || theme == R.style.Theme_White_Alt || theme == R.style.Theme_TransparentWhite) { - return R.color.blue_theme_color; - } else { - return R.color.task_edit_selected; - } + return getDarkVsLight(R.color.task_edit_selected, R.color.blue_theme_color); } public static void forceTheme(int theme) { diff --git a/astrid/src/com/todoroo/astrid/ui/ImportanceControlSet.java b/astrid/src/com/todoroo/astrid/ui/ImportanceControlSet.java index f93cafc97..f881ae251 100644 --- a/astrid/src/com/todoroo/astrid/ui/ImportanceControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/ImportanceControlSet.java @@ -19,6 +19,7 @@ import android.widget.ToggleButton; import com.timsu.astrid.R; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.helper.TaskEditControlSet; +import com.todoroo.astrid.service.ThemeService; /** * Control Set for setting task importance @@ -45,7 +46,7 @@ public class ImportanceControlSet extends TaskEditControlSet { if(b.getTag() == i) { b.setTextSize(getTextSize()); b.setChecked(true); - b.setBackgroundResource(R.drawable.importance_background_selected); + b.setBackgroundResource(ThemeService.getDarkVsLight(R.drawable.importance_background_selected, R.drawable.importance_background_selected_dark)); } else { b.setTextSize(getTextSize()); b.setChecked(false);