Added solarized theme

This commit is contained in:
M66B
2021-06-26 20:14:40 +02:00
parent 7efb30037f
commit a2cae71ca5
7 changed files with 49 additions and 1 deletions

View File

@@ -969,7 +969,9 @@ public class FragmentCompose extends FragmentBase {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean cards = prefs.getBoolean("cards", true);
if (cards && !Helper.isDarkTheme(getContext()))
String theme = prefs.getString("theme", null);
if (cards &&
(!Helper.isDarkTheme(getContext())) || "solarized".equals(theme))
view.setBackgroundColor(Helper.resolveColor(getContext(), R.attr.colorCardBackground));
//boolean beige = prefs.getBoolean("beige", true);