Cherish: Add Clear Spring Theme [3/3]
This commit is contained in:
@@ -277,6 +277,7 @@
|
|||||||
<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_dark_grey</item>
|
||||||
<item>@string/theme_type_material_ocean</item>
|
<item>@string/theme_type_material_ocean</item>
|
||||||
|
<item>@string/theme_type_clear_spring</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="theme_type_values">
|
<string-array name="theme_type_values">
|
||||||
@@ -288,6 +289,7 @@
|
|||||||
<item>6</item>
|
<item>6</item>
|
||||||
<item>7</item>
|
<item>7</item>
|
||||||
<item>8</item>
|
<item>8</item>
|
||||||
|
<item>9</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<!-- Adaptive Playback -->
|
<!-- Adaptive Playback -->
|
||||||
|
|||||||
@@ -271,6 +271,7 @@
|
|||||||
<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_dark_grey">Dark Grey</string>
|
||||||
<string name="theme_type_material_ocean">Material Ocean</string>
|
<string name="theme_type_material_ocean">Material Ocean</string>
|
||||||
|
<string name="theme_type_clear_spring">Clear Spring</string>
|
||||||
|
|
||||||
<!-- Power menu and dialogs opacity -->
|
<!-- Power menu and dialogs opacity -->
|
||||||
<string name="lockscreen_secure_power_title">Secure power menu</string>
|
<string name="lockscreen_secure_power_title">Secure power menu</string>
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_NO, ThemesUtils.CLEAR_SPRING);
|
||||||
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);
|
||||||
@@ -146,6 +147,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
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);
|
||||||
@@ -154,6 +156,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
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);
|
||||||
@@ -162,6 +165,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
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);
|
||||||
@@ -170,6 +174,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
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);
|
||||||
@@ -178,6 +183,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
break;
|
break;
|
||||||
case "7":
|
case "7":
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
@@ -186,6 +192,7 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.PITCH_BLACK);
|
||||||
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.DARK_GREY);
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
break;
|
break;
|
||||||
case "8":
|
case "8":
|
||||||
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.SOLARIZED_DARK);
|
||||||
@@ -194,6 +201,16 @@ public class ThemeSettings extends SettingsPreferenceFragment implements
|
|||||||
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.DARK_GREY);
|
||||||
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
|
break;
|
||||||
|
case "9":
|
||||||
|
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(false, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.MATERIAL_OCEAN);
|
||||||
|
handleBackgrounds(true, context, UiModeManager.MODE_NIGHT_YES, ThemesUtils.CLEAR_SPRING);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -225,7 +242,9 @@ 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.darkgrey.system")) {
|
if (CherishUtils.isThemeEnabled("com.android.theme.clearspring.system")) {
|
||||||
|
mThemeSwitch.setValue("9");
|
||||||
|
} else if (CherishUtils.isThemeEnabled("com.android.theme.darkgrey.system")) {
|
||||||
mThemeSwitch.setValue("7");
|
mThemeSwitch.setValue("7");
|
||||||
} else if (CherishUtils.isThemeEnabled("com.android.theme.pitchblack.system")) {
|
} else if (CherishUtils.isThemeEnabled("com.android.theme.pitchblack.system")) {
|
||||||
mThemeSwitch.setValue("6");
|
mThemeSwitch.setValue("6");
|
||||||
|
|||||||
Reference in New Issue
Block a user