Cherish:Add MaterialOcean and DarkGrey System Theme [3/3]
This commit is contained in:
@@ -273,6 +273,8 @@
|
|||||||
<item>@string/theme_type_baked_green</item>
|
<item>@string/theme_type_baked_green</item>
|
||||||
<item>@string/theme_type_choco_x</item>
|
<item>@string/theme_type_choco_x</item>
|
||||||
<item>@string/theme_type_du_pitchblack</item>
|
<item>@string/theme_type_du_pitchblack</item>
|
||||||
|
<item>@string/theme_type_dark_grey</item>
|
||||||
|
<item>@string/theme_type_material_ocean</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="theme_type_values">
|
<string-array name="theme_type_values">
|
||||||
@@ -282,5 +284,7 @@
|
|||||||
<item>4</item>
|
<item>4</item>
|
||||||
<item>5</item>
|
<item>5</item>
|
||||||
<item>6</item>
|
<item>6</item>
|
||||||
|
<item>7</item>
|
||||||
|
<item>8</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -270,6 +270,8 @@
|
|||||||
<string name="theme_type_baked_green">Baked Green</string>
|
<string name="theme_type_baked_green">Baked Green</string>
|
||||||
<string name="theme_type_choco_x">Choco X</string>
|
<string name="theme_type_choco_x">Choco X</string>
|
||||||
<string name="theme_type_du_pitchblack">Pitch black</string>
|
<string name="theme_type_du_pitchblack">Pitch black</string>
|
||||||
|
<string name="theme_type_dark_grey">Dark Grey</string>
|
||||||
|
<string name="theme_type_material_ocean">Material Ocean</string>
|
||||||
|
|
||||||
<!-- RGB Accenter -->
|
<!-- RGB Accenter -->
|
||||||
<string name="theme_rgb_title">RGB Accent | Gradient Theming</string>
|
<string name="theme_rgb_title">RGB Accent | Gradient Theming</string>
|
||||||
|
|||||||
@@ -81,36 +81,64 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.BAKED_GREEN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.BAKED_GREEN);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.CHOCO_X);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.CHOCO_X);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.MATERIAL_OCEAN);
|
||||||
break;
|
break;
|
||||||
case "2":
|
case "2":
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
break;
|
break;
|
||||||
case "3":
|
case "3":
|
||||||
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
break;
|
break;
|
||||||
case "4":
|
case "4":
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
break;
|
break;
|
||||||
case "5":
|
case "5":
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
break;
|
break;
|
||||||
case "6":
|
case "6":
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
break;
|
||||||
|
case "7":
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
break;
|
||||||
|
case "8":
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.BAKED_GREEN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CHOCO_X);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -146,8 +174,12 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
private void setupThemeSwitchPref() {
|
private void setupThemeSwitchPref() {
|
||||||
mThemeSwitch = (ListPreference) findPreference(PREF_THEME_SWITCH);
|
mThemeSwitch = (ListPreference) findPreference(PREF_THEME_SWITCH);
|
||||||
mThemeSwitch.setOnPreferenceChangeListener(this);
|
mThemeSwitch.setOnPreferenceChangeListener(this);
|
||||||
if (CherishUtils.isThemeEnabled("com.android.theme.pitchblack.system")) {
|
if (CherishUtils.isThemeEnabled("com.android.theme.darkgrey.system")) {
|
||||||
|
mThemeSwitch.setValue("7");
|
||||||
|
} else if (CherishUtils.isThemeEnabled("com.android.theme.pitchblack.system")) {
|
||||||
mThemeSwitch.setValue("6");
|
mThemeSwitch.setValue("6");
|
||||||
|
} else if (CherishUtils.isThemeEnabled("com.android.theme.materialocean.system")) {
|
||||||
|
mThemeSwitch.setValue("8");
|
||||||
} else if (CherishUtils.isThemeEnabled("com.android.theme.chocox.system")) {
|
} else if (CherishUtils.isThemeEnabled("com.android.theme.chocox.system")) {
|
||||||
mThemeSwitch.setValue("5");
|
mThemeSwitch.setValue("5");
|
||||||
} else if (CherishUtils.isThemeEnabled("com.android.theme.bakedgreen.system")) {
|
} else if (CherishUtils.isThemeEnabled("com.android.theme.bakedgreen.system")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user