diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index 80b6693022..c2098a99b0 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -158,11 +158,15 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc case "grey_light": setTheme(R.style.AppThemeGreySteelBlueLight); break; - case "black": case "grey_dark": setTheme(R.style.AppThemeGreySteelBlueDark); break; + // Black + case "black": + setTheme(R.style.AppThemeBlack); + break; + // System case "system": case "blue_orange_system": diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 9071310b57..5154a507b3 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -716,8 +716,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); String theme = prefs.getString("theme", "light"); - if ("black".equals(theme)) - theme = "grey_dark"; itten.setOnClickListener(new View.OnClickListener() { @Override @@ -767,7 +765,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer theme.startsWith("purple_yellow") || theme.startsWith("green_red")); boolean dark = theme.endsWith("dark"); - boolean black = theme.endsWith("black"); + boolean black = (!"black".equals(theme) && theme.endsWith("black")); boolean system = theme.endsWith("system"); swReverse.setChecked(colored); @@ -811,6 +809,10 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer case "grey_dark": rgTheme.check(R.id.rbThemeGrey); break; + + case "black": + rgTheme.check(R.id.rbThemeBlack); + break; } return new AlertDialog.Builder(getContext()) @@ -859,6 +861,9 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer prefs.edit().putString("theme", "grey" + (dark ? "_dark" : "_light")).apply(); break; + case R.id.rbThemeBlack: + prefs.edit().putString("theme", "black").apply(); + break; } } }) diff --git a/app/src/main/res/layout/dialog_theme.xml b/app/src/main/res/layout/dialog_theme.xml index 9038973c13..22a5f416cb 100644 --- a/app/src/main/res/layout/dialog_theme.xml +++ b/app/src/main/res/layout/dialog_theme.xml @@ -71,6 +71,14 @@ android:padding="6dp" android:text="@string/title_setup_theme_grey" android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> + + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b46d24cc36..4af9b957e2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -325,7 +325,7 @@ -