diff --git a/astrid/src/main/AndroidManifest.xml b/astrid/src/main/AndroidManifest.xml index eeccc765f..cd63d81da 100644 --- a/astrid/src/main/AndroidManifest.xml +++ b/astrid/src/main/AndroidManifest.xml @@ -87,7 +87,7 @@ @@ -337,19 +337,19 @@ + android:theme="@style/Tasks.Dialog" /> + android:theme="@style/Tasks.FullTransparent" /> + android:theme="@style/Tasks.FullTransparent" /> + android:theme="@style/Tasks.FullTransparent" /> @@ -369,7 +369,7 @@ + android:theme="@style/Tasks.Dialog" /> + android:theme="@style/Tasks"> @@ -398,7 +398,7 @@ diff --git a/astrid/src/main/java/com/todoroo/astrid/actfm/TagSettingsActivity.java b/astrid/src/main/java/com/todoroo/astrid/actfm/TagSettingsActivity.java index cb2684566..217fb9517 100644 --- a/astrid/src/main/java/com/todoroo/astrid/actfm/TagSettingsActivity.java +++ b/astrid/src/main/java/com/todoroo/astrid/actfm/TagSettingsActivity.java @@ -118,7 +118,7 @@ public class TagSettingsActivity extends SherlockFragmentActivity { } else { ThemeService.applyTheme(this); ActionBar actionBar = getSupportActionBar(); - if(ThemeService.getTheme() == R.style.Theme) { + if(ThemeService.getTheme() == R.style.Tasks) { actionBar.setLogo(R.drawable.ic_action_save_light); } else { actionBar.setLogo(R.drawable.ic_action_save); diff --git a/astrid/src/main/java/com/todoroo/astrid/activity/TaskEditActivity.java b/astrid/src/main/java/com/todoroo/astrid/activity/TaskEditActivity.java index 322b4f75d..9d8addb4e 100644 --- a/astrid/src/main/java/com/todoroo/astrid/activity/TaskEditActivity.java +++ b/astrid/src/main/java/com/todoroo/astrid/activity/TaskEditActivity.java @@ -23,7 +23,7 @@ public class TaskEditActivity extends AstridActivity { protected void onCreate(Bundle savedInstanceState) { ThemeService.applyTheme(this); ActionBar actionBar = getSupportActionBar(); - if(ThemeService.getTheme() == R.style.Theme) { + if(ThemeService.getTheme() == R.style.Tasks) { actionBar.setLogo(R.drawable.ic_action_save_light); } else { actionBar.setLogo(R.drawable.ic_action_save); diff --git a/astrid/src/main/java/com/todoroo/astrid/service/ThemeService.java b/astrid/src/main/java/com/todoroo/astrid/service/ThemeService.java index 1a6bd1f6b..883f43081 100644 --- a/astrid/src/main/java/com/todoroo/astrid/service/ThemeService.java +++ b/astrid/src/main/java/com/todoroo/astrid/service/ThemeService.java @@ -54,18 +54,18 @@ public class ThemeService { private static int getStyleForSetting(String setting) { if(THEME_BLACK.equals(setting)) { - return R.style.Theme; + return R.style.Tasks; } else { - return R.style.Theme_White; + return R.style.Tasks_Light; } } public static int getThemeColor() { int theme = getTheme(); switch(theme) { - case R.style.Theme: + case R.style.Tasks: return R.color.blue_theme_color; - case R.style.Theme_White: + case R.style.Tasks_Light: default: return R.color.dark_blue_theme_color; } @@ -75,7 +75,7 @@ public class ThemeService { boolean ics = AndroidUtilities.getSdkVersion() >= 14; int themeSetting = getTheme(); int theme; - if (themeSetting == R.style.Theme) { + if (themeSetting == R.style.Tasks) { if (ics) { theme = R.style.TEA_Dialog_ICS; } else { @@ -83,9 +83,9 @@ public class ThemeService { } } else { if (ics) { - theme = R.style.TEA_Dialog_White_ICS; + theme = R.style.TEA_Dialog_Light_ICS; } else { - theme = R.style.TEA_Dialog_White; + theme = R.style.TEA_Dialog_Light; } } return theme; @@ -94,10 +94,10 @@ public class ThemeService { public static int getDialogTheme() { int themeSetting = getTheme(); int theme; - if (themeSetting == R.style.Theme) { - theme = R.style.Theme_Dialog; + if (themeSetting == R.style.Tasks) { + theme = R.style.Tasks_Dialog; } else { - theme = R.style.Theme_Dialog_White; + theme = R.style.Tasks_Dialog_Light; } return theme; } @@ -105,7 +105,7 @@ public class ThemeService { public static int getDialogTextColor() { if (AndroidUtilities.getSdkVersion() >= 11) { int theme = getTheme(); - if (theme == R.style.Theme) { + if (theme == R.style.Tasks) { return android.R.color.white; } else { return android.R.color.black; @@ -146,7 +146,7 @@ public class ThemeService { public static int getDrawable(int lightDrawable, int alter) { int theme = getTheme(); - boolean darkTheme = theme == R.style.Theme; + boolean darkTheme = theme == R.style.Tasks; switch(alter) { case FLAG_FORCE_DARK: darkTheme = true; @@ -205,12 +205,12 @@ public class ThemeService { return lightDrawable; } - public static int getDarkVsLight(int resForWhite, int resForDark) { + public static int getDarkVsLight(int resForLight, int resForDark) { int theme = getTheme(); - if (theme == R.style.Theme) { + if (theme == R.style.Tasks) { return resForDark; } else { - return resForWhite; + return resForLight; } } public static int getTaskEditDrawable(int regularDrawable, int lightBlueDrawable) { diff --git a/astrid/src/main/java/com/todoroo/astrid/widget/TasksWidget.java b/astrid/src/main/java/com/todoroo/astrid/widget/TasksWidget.java index 28f2d188d..1a711c272 100644 --- a/astrid/src/main/java/com/todoroo/astrid/widget/TasksWidget.java +++ b/astrid/src/main/java/com/todoroo/astrid/widget/TasksWidget.java @@ -310,7 +310,7 @@ public class TasksWidget extends AppWidgetProvider { private boolean isDarkTheme() { int theme = ThemeService.getWidgetTheme(); - return theme == R.style.Theme; + return theme == R.style.Tasks; } /** diff --git a/astrid/src/main/res/values/styles.xml b/astrid/src/main/res/values/styles.xml index 6450ce6b4..3367cec2c 100644 --- a/astrid/src/main/res/values/styles.xml +++ b/astrid/src/main/res/values/styles.xml @@ -8,7 +8,7 @@ - - - - - - - - - - @@ -294,11 +294,11 @@ 18sp - - @@ -318,7 +318,7 @@ #ffffff - @@ -333,7 +333,7 @@ #ffffff -