From 0a30df5aaa462376f0defc55b2a3ba5e55de3440 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Dec 2019 21:03:38 +0100 Subject: [PATCH] Swapped red/green --- .../java/eu/faircode/email/ActivityBase.java | 8 ++--- .../email/FragmentOptionsDisplay.java | 16 +++++----- app/src/main/res/layout/dialog_theme.xml | 8 ++--- app/src/main/res/values/colors.xml | 16 +++++----- app/src/main/res/values/strings.xml | 4 +-- app/src/main/res/values/styles.xml | 32 +++++++++---------- 6 files changed, 42 insertions(+), 42 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index a9ceacde9e..4e0cca7df1 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -94,8 +94,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc case "yellow_purple_light": setTheme(R.style.AppThemeYellowPurpleLight); break; - case "green_red_light": - setTheme(R.style.AppThemeGreenRedLight); + case "red_green_light": + setTheme(R.style.AppThemeRedGreenLight); break; case "grey_light": setTheme(R.style.AppThemeGreySteelBlueLight); @@ -108,8 +108,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc case "yellow_purple_dark": setTheme(R.style.AppThemeYellowPurpleDark); break; - case "green_red_dark": - setTheme(R.style.AppThemeGreenRedDark); + case "red_green_dark": + setTheme(R.style.AppThemeRedGreenDark); break; case "grey_dark": setTheme(R.style.AppThemeGreySteelBlueDark); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 928c089a95..8d5bc9f56f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -674,8 +674,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer case "yellow_purple_light": rgTheme.check(R.id.rbThemeYellowPurpleLight); break; - case "green_red_light": - rgTheme.check(R.id.rbThemeGreenRedLight); + case "red_green_light": + rgTheme.check(R.id.rbThemeRedGreenLight); break; case "grey_light": rgTheme.check(R.id.rbThemeGreyLight); @@ -688,8 +688,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer case "yellow_purple_dark": rgTheme.check(R.id.rbThemeYellowPurpleDark); break; - case "green_red_dark": - rgTheme.check(R.id.rbThemeGreenRedDark); + case "red_green_dark": + rgTheme.check(R.id.rbThemeRedGreenDark); break; case "grey_dark": rgTheme.check(R.id.rbThemeGreyDark); @@ -720,8 +720,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer case R.id.rbThemeYellowPurpleLight: prefs.edit().putString("theme", "yellow_purple_light").apply(); break; - case R.id.rbThemeGreenRedLight: - prefs.edit().putString("theme", "green_red_light").apply(); + case R.id.rbThemeRedGreenLight: + prefs.edit().putString("theme", "red_green_light").apply(); break; case R.id.rbThemeGreyLight: prefs.edit().putString("theme", "grey_light").apply(); @@ -733,8 +733,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer case R.id.rbThemeYellowPurpleDark: prefs.edit().putString("theme", "yellow_purple_dark").apply(); break; - case R.id.rbThemeGreenRedDark: - prefs.edit().putString("theme", "green_red_dark").apply(); + case R.id.rbThemeRedGreenDark: + prefs.edit().putString("theme", "red_green_dark").apply(); break; case R.id.rbThemeGreyDark: prefs.edit().putString("theme", "grey_dark").apply(); diff --git a/app/src/main/res/layout/dialog_theme.xml b/app/src/main/res/layout/dialog_theme.xml index 7868cdd65e..cae9500ba1 100644 --- a/app/src/main/res/layout/dialog_theme.xml +++ b/app/src/main/res/layout/dialog_theme.xml @@ -45,11 +45,11 @@ android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> #bc5100 #ba68c8 - - #43a047 - #00701a - #e53935 + + #e53935 + #ab000d + #43a047 - - #1b5e20 - #003300 - #e57373 + + #b71c1c + #7f0000 + #81c784 #222 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 14221c9b49..774f6cb6d3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -203,12 +203,12 @@ Blue/orange light theme Yellow/purple light theme - Green/red light theme + Red/green light theme Grey light theme Blue/orange dark theme Yellow/purple dark theme - Green/red dark theme + Red/green dark theme Grey dark theme Black theme diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index f44713d9c0..e4e62dc965 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -129,19 +129,19 @@ @color/lightPurpleAccent - -