Add theme setting

This prepares that different themes can be added. Currently light and
dark will just use the default OK theme.
This commit is contained in:
Thialfihar
2015-07-21 20:49:08 +02:00
parent e4b113701c
commit e51eff4050
11 changed files with 123 additions and 12 deletions
@@ -220,6 +220,15 @@ public class Preferences {
return mSharedPreferences.getBoolean(Pref.TEXT_USE_COMPRESSION, true);
}
public String getTheme() {
return mSharedPreferences.getString(Pref.THEME, "light");
}
public void setTheme(String value) {
SharedPreferences.Editor editor = mSharedPreferences.edit();
editor.putString(Constants.Pref.THEME, value);
editor.commit();
}
public void setUseArmor(boolean useArmor) {
SharedPreferences.Editor editor = mSharedPreferences.edit();