[app] Nuke accent color

This commit is contained in:
tehcneko 2021-02-14 16:07:37 +08:00
parent 7067f147fd
commit 07c05771aa
26 changed files with 673 additions and 2468 deletions

View File

@ -278,7 +278,7 @@ public class SettingsActivity extends BaseActivity {
if (restore != null) {
restore.setEnabled(installed);
restore.setOnPreferenceClickListener(preference -> {
restoreLauncher.launch(new String[]{"*/*"});
restoreLauncher.launch(new String[]{"*/*" });
return true;
});
}
@ -308,7 +308,7 @@ public class SettingsActivity extends BaseActivity {
});
}
Preference primary_color = findPreference("primary_color");
Preference primary_color = findPreference("theme_color");
if (primary_color != null) {
primary_color.setOnPreferenceChangeListener((preference, newValue) -> {
SettingsActivity activity = (SettingsActivity) getActivity();
@ -318,17 +318,6 @@ public class SettingsActivity extends BaseActivity {
return true;
});
}
Preference accent_color = findPreference("accent_color");
if (accent_color != null) {
accent_color.setOnPreferenceChangeListener((preference, newValue) -> {
SettingsActivity activity = (SettingsActivity) getActivity();
if (activity != null) {
activity.restart();
}
return true;
});
}
}
private class OnFlagChangeListener implements Preference.OnPreferenceChangeListener {

View File

@ -36,8 +36,8 @@ import io.github.lsposed.manager.BuildConfig;
import io.github.lsposed.manager.Constants;
import io.github.lsposed.manager.R;
import io.github.lsposed.manager.util.NavUtil;
import io.github.lsposed.manager.util.ThemeUtil;
import io.github.lsposed.manager.util.Version;
import io.github.lsposed.manager.util.theme.ThemeUtil;
import rikka.core.res.ResourcesKt;
import rikka.material.app.MaterialActivity;
@ -74,12 +74,12 @@ public class BaseActivity extends MaterialActivity {
@Override
public void onApplyUserThemeResource(@NonNull Resources.Theme theme, boolean isDecorView) {
theme.applyStyle(ThemeUtil.getNightThemeStyleRes(this), true);
theme.applyStyle(ThemeUtil.getColorThemeStyleRes(this), true);
theme.applyStyle(ThemeUtil.getColorThemeStyleRes(), true);
}
@Override
public String computeUserThemeKey() {
return ThemeUtil.getColorTheme(this) + ThemeUtil.getNightTheme(this);
return ThemeUtil.getColorTheme() + ThemeUtil.getNightTheme(this);
}
@Override

View File

@ -1,82 +0,0 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2020 EdXposed Contributors
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import androidx.core.content.ContextCompat;
import com.takisoft.preferencex.ColorPickerPreference;
import com.takisoft.preferencex.ColorPickerPreferenceDialogFragmentCompat;
import com.takisoft.preferencex.PreferenceFragmentCompat;
import java.util.Objects;
import io.github.lsposed.manager.util.CustomThemeColor;
import io.github.lsposed.manager.util.CustomThemeColors;
public class ThemeColorPreference extends ColorPickerPreference {
static {
PreferenceFragmentCompat.registerPreferenceFragment(ThemeColorPreference.class,
ColorPickerPreferenceDialogFragmentCompat.class);
}
public ThemeColorPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
init();
}
public ThemeColorPreference(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
public ThemeColorPreference(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public ThemeColorPreference(Context context) {
super(context);
init();
}
private void init() {
String key = getKey();
Context context = getContext();
CustomThemeColor[] colors;
if (Objects.equals(key, "primary_color")) {
colors = CustomThemeColors.Primary.values();
} else if (Objects.equals(key, "accent_color")) {
colors = CustomThemeColors.Accent.values();
} else {
throw new IllegalArgumentException("Unknown custom theme color preference key: " + key);
}
int[] mEntryValues = new int[colors.length];
for (int i = 0; i < colors.length; ++i) {
CustomThemeColor color = colors[i];
mEntryValues[i] = ContextCompat.getColor(context, color.getResourceId());
}
setColors(mEntryValues);
}
}

View File

@ -1,33 +0,0 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2020 EdXposed Contributors
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.util;
import androidx.annotation.ColorRes;
import androidx.annotation.NonNull;
public interface CustomThemeColor {
@ColorRes
int getResourceId();
@NonNull
String getResourceEntryName();
}

View File

@ -1,124 +0,0 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2020 EdXposed Contributors
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.util;
import androidx.annotation.ColorRes;
import androidx.annotation.NonNull;
import io.github.lsposed.manager.R;
public class CustomThemeColors {
private CustomThemeColors() {
}
public enum Primary implements CustomThemeColor {
COLORPRIMARY(R.color.colorPrimary, "colorPrimary"),
MATERIAL_RED_500(R.color.material_red_500, "material_red_500"),
MATERIAL_PINK_500(R.color.material_pink_500, "material_pink_500"),
MATERIAL_PURPLE_500(R.color.material_purple_500, "material_purple_500"),
MATERIAL_DEEP_PURPLE_500(R.color.material_deep_purple_500, "material_deep_purple_500"),
MATERIAL_INDIGO_500(R.color.material_indigo_500, "material_indigo_500"),
MATERIAL_BLUE_500(R.color.material_blue_500, "material_blue_500"),
MATERIAL_LIGHT_BLUE_500(R.color.material_light_blue_500, "material_light_blue_500"),
MATERIAL_CYAN_500(R.color.material_cyan_500, "material_cyan_500"),
MATERIAL_TEAL_500(R.color.material_teal_500, "material_teal_500"),
MATERIAL_GREEN_500(R.color.material_green_500, "material_green_500"),
MATERIAL_LIGHT_GREEN_500(R.color.material_light_green_500, "material_light_green_500"),
MATERIAL_LIME_500(R.color.material_lime_500, "material_lime_500"),
MATERIAL_YELLOW_500(R.color.material_yellow_500, "material_yellow_500"),
MATERIAL_AMBER_500(R.color.material_amber_500, "material_amber_500"),
MATERIAL_ORANGE_500(R.color.material_orange_500, "material_orange_500"),
MATERIAL_DEEP_ORANGE_500(R.color.material_deep_orange_500, "material_deep_orange_500"),
MATERIAL_BROWN_500(R.color.material_brown_500, "material_brown_500"),
MATERIAL_GREY_500(R.color.material_grey_500, "material_grey_500"),
MATERIAL_BLUE_GREY_500(R.color.material_blue_grey_500, "material_blue_grey_500");
@ColorRes
private final int mResourceId;
@NonNull
private final String mResourceEntryName;
Primary(@ColorRes int resourceId, @NonNull String resourceEntryName) {
mResourceId = resourceId;
mResourceEntryName = resourceEntryName;
}
@ColorRes
@Override
public int getResourceId() {
return mResourceId;
}
@NonNull
@Override
public String getResourceEntryName() {
return mResourceEntryName;
}
}
public enum Accent implements CustomThemeColor {
COLORACCENT(R.color.colorAccent, "colorAccent"),
MATERIAL_RED_A200(R.color.material_red_a200, "material_red_a200"),
MATERIAL_PINK_A200(R.color.material_pink_a200, "material_pink_a200"),
MATERIAL_PURPLE_A200(R.color.material_purple_a200, "material_purple_a200"),
MATERIAL_DEEP_PURPLE_A200(R.color.material_deep_purple_a200, "material_deep_purple_a200"),
MATERIAL_INDIGO_A200(R.color.material_indigo_a200, "material_indigo_a200"),
MATERIAL_BLUE_A200(R.color.material_blue_a200, "material_blue_a200"),
MATERIAL_LIGHT_BLUE_500(R.color.material_light_blue_500, "material_light_blue_500"),
MATERIAL_CYAN_500(R.color.material_cyan_500, "material_cyan_500"),
MATERIAL_TEAL_500(R.color.material_teal_500, "material_teal_500"),
MATERIAL_GREEN_500(R.color.material_green_500, "material_green_500"),
MATERIAL_LIGHT_GREEN_500(R.color.material_light_green_500, "material_light_green_500"),
MATERIAL_LIME_500(R.color.material_lime_500, "material_lime_500"),
MATERIAL_YELLOW_500(R.color.material_yellow_500, "material_yellow_500"),
MATERIAL_AMBER_500(R.color.material_amber_500, "material_amber_500"),
MATERIAL_ORANGE_500(R.color.material_orange_500, "material_orange_500"),
MATERIAL_DEEP_ORANGE_500(R.color.material_deep_orange_500, "material_deep_orange_500"),
MATERIAL_BROWN_500(R.color.material_brown_500, "material_brown_500"),
MATERIAL_GREY_500(R.color.material_grey_500, "material_grey_500"),
MATERIAL_BLUE_GREY_500(R.color.material_blue_grey_500, "material_blue_grey_500");
@ColorRes
private final int mResourceId;
@NonNull
private final String mResourceEntryName;
Accent(@ColorRes int resourceId, @NonNull String resourceEntryName) {
mResourceId = resourceId;
mResourceEntryName = resourceEntryName;
}
@ColorRes
@Override
public int getResourceId() {
return mResourceId;
}
@NonNull
@Override
public String getResourceEntryName() {
return mResourceEntryName;
}
}
}

View File

@ -70,7 +70,7 @@ public final class NotificationUtil {
.setContentText(content)
.setAutoCancel(true)
.setSmallIcon(R.drawable.ic_notification)
.setColor(ContextCompat.getColor(context, R.color.colorPrimary))
.setColor(ContextCompat.getColor(context, R.color.color_primary))
.setContentIntent(contentIntent)
.setStyle(style);

View File

@ -1,499 +0,0 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2020 EdXposed Contributors
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.util;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.annotation.StyleRes;
import java.util.HashMap;
import java.util.Map;
import io.github.lsposed.manager.App;
import io.github.lsposed.manager.R;
import rikka.core.util.ResourceUtils;
public class ThemeUtil {
private static final Map<String, Integer> colorThemeMap = new HashMap<>();
private static final SharedPreferences preferences;
static {
preferences = App.getPreferences();
colorThemeMap.put("ThemeOverlay.colorPrimary.colorAccent", R.style.ThemeOverlay_colorPrimary_colorAccent);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_red_a200", R.style.ThemeOverlay_colorPrimary_material_red_a200);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_pink_a200", R.style.ThemeOverlay_colorPrimary_material_pink_a200);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_purple_a200", R.style.ThemeOverlay_colorPrimary_material_purple_a200);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_deep_purple_a200", R.style.ThemeOverlay_colorPrimary_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_indigo_a200", R.style.ThemeOverlay_colorPrimary_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_blue_a200", R.style.ThemeOverlay_colorPrimary_material_blue_a200);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_light_blue_500", R.style.ThemeOverlay_colorPrimary_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_cyan_500", R.style.ThemeOverlay_colorPrimary_material_cyan_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_teal_500", R.style.ThemeOverlay_colorPrimary_material_teal_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_green_500", R.style.ThemeOverlay_colorPrimary_material_green_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_light_green_500", R.style.ThemeOverlay_colorPrimary_material_light_green_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_lime_500", R.style.ThemeOverlay_colorPrimary_material_lime_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_yellow_500", R.style.ThemeOverlay_colorPrimary_material_yellow_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_amber_500", R.style.ThemeOverlay_colorPrimary_material_amber_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_orange_500", R.style.ThemeOverlay_colorPrimary_material_orange_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_deep_orange_500", R.style.ThemeOverlay_colorPrimary_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_brown_500", R.style.ThemeOverlay_colorPrimary_material_brown_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_grey_500", R.style.ThemeOverlay_colorPrimary_material_grey_500);
colorThemeMap.put("ThemeOverlay.colorPrimary.material_blue_grey_500", R.style.ThemeOverlay_colorPrimary_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_red_500.colorAccent", R.style.ThemeOverlay_material_red_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_red_500.material_red_a200", R.style.ThemeOverlay_material_red_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_red_500.material_pink_a200", R.style.ThemeOverlay_material_red_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_red_500.material_purple_a200", R.style.ThemeOverlay_material_red_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_red_500.material_deep_purple_a200", R.style.ThemeOverlay_material_red_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_red_500.material_indigo_a200", R.style.ThemeOverlay_material_red_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_red_500.material_blue_a200", R.style.ThemeOverlay_material_red_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_red_500.material_light_blue_500", R.style.ThemeOverlay_material_red_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_cyan_500", R.style.ThemeOverlay_material_red_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_teal_500", R.style.ThemeOverlay_material_red_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_green_500", R.style.ThemeOverlay_material_red_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_light_green_500", R.style.ThemeOverlay_material_red_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_lime_500", R.style.ThemeOverlay_material_red_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_yellow_500", R.style.ThemeOverlay_material_red_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_amber_500", R.style.ThemeOverlay_material_red_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_orange_500", R.style.ThemeOverlay_material_red_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_deep_orange_500", R.style.ThemeOverlay_material_red_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_brown_500", R.style.ThemeOverlay_material_red_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_grey_500", R.style.ThemeOverlay_material_red_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_red_500.material_blue_grey_500", R.style.ThemeOverlay_material_red_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.colorAccent", R.style.ThemeOverlay_material_pink_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_red_a200", R.style.ThemeOverlay_material_pink_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_pink_a200", R.style.ThemeOverlay_material_pink_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_purple_a200", R.style.ThemeOverlay_material_pink_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_deep_purple_a200", R.style.ThemeOverlay_material_pink_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_indigo_a200", R.style.ThemeOverlay_material_pink_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_blue_a200", R.style.ThemeOverlay_material_pink_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_light_blue_500", R.style.ThemeOverlay_material_pink_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_cyan_500", R.style.ThemeOverlay_material_pink_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_teal_500", R.style.ThemeOverlay_material_pink_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_green_500", R.style.ThemeOverlay_material_pink_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_light_green_500", R.style.ThemeOverlay_material_pink_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_lime_500", R.style.ThemeOverlay_material_pink_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_yellow_500", R.style.ThemeOverlay_material_pink_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_amber_500", R.style.ThemeOverlay_material_pink_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_orange_500", R.style.ThemeOverlay_material_pink_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_deep_orange_500", R.style.ThemeOverlay_material_pink_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_brown_500", R.style.ThemeOverlay_material_pink_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_grey_500", R.style.ThemeOverlay_material_pink_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_pink_500.material_blue_grey_500", R.style.ThemeOverlay_material_pink_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.colorAccent", R.style.ThemeOverlay_material_purple_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_red_a200", R.style.ThemeOverlay_material_purple_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_pink_a200", R.style.ThemeOverlay_material_purple_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_purple_a200", R.style.ThemeOverlay_material_purple_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_deep_purple_a200", R.style.ThemeOverlay_material_purple_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_indigo_a200", R.style.ThemeOverlay_material_purple_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_blue_a200", R.style.ThemeOverlay_material_purple_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_light_blue_500", R.style.ThemeOverlay_material_purple_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_cyan_500", R.style.ThemeOverlay_material_purple_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_teal_500", R.style.ThemeOverlay_material_purple_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_green_500", R.style.ThemeOverlay_material_purple_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_light_green_500", R.style.ThemeOverlay_material_purple_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_lime_500", R.style.ThemeOverlay_material_purple_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_yellow_500", R.style.ThemeOverlay_material_purple_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_amber_500", R.style.ThemeOverlay_material_purple_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_orange_500", R.style.ThemeOverlay_material_purple_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_deep_orange_500", R.style.ThemeOverlay_material_purple_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_brown_500", R.style.ThemeOverlay_material_purple_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_grey_500", R.style.ThemeOverlay_material_purple_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_purple_500.material_blue_grey_500", R.style.ThemeOverlay_material_purple_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.colorAccent", R.style.ThemeOverlay_material_deep_purple_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_red_a200", R.style.ThemeOverlay_material_deep_purple_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_pink_a200", R.style.ThemeOverlay_material_deep_purple_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_purple_a200", R.style.ThemeOverlay_material_deep_purple_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_deep_purple_a200", R.style.ThemeOverlay_material_deep_purple_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_indigo_a200", R.style.ThemeOverlay_material_deep_purple_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_blue_a200", R.style.ThemeOverlay_material_deep_purple_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_light_blue_500", R.style.ThemeOverlay_material_deep_purple_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_cyan_500", R.style.ThemeOverlay_material_deep_purple_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_teal_500", R.style.ThemeOverlay_material_deep_purple_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_green_500", R.style.ThemeOverlay_material_deep_purple_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_light_green_500", R.style.ThemeOverlay_material_deep_purple_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_lime_500", R.style.ThemeOverlay_material_deep_purple_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_yellow_500", R.style.ThemeOverlay_material_deep_purple_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_amber_500", R.style.ThemeOverlay_material_deep_purple_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_orange_500", R.style.ThemeOverlay_material_deep_purple_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_deep_orange_500", R.style.ThemeOverlay_material_deep_purple_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_brown_500", R.style.ThemeOverlay_material_deep_purple_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_grey_500", R.style.ThemeOverlay_material_deep_purple_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_deep_purple_500.material_blue_grey_500", R.style.ThemeOverlay_material_deep_purple_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.colorAccent", R.style.ThemeOverlay_material_indigo_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_red_a200", R.style.ThemeOverlay_material_indigo_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_pink_a200", R.style.ThemeOverlay_material_indigo_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_purple_a200", R.style.ThemeOverlay_material_indigo_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_deep_purple_a200", R.style.ThemeOverlay_material_indigo_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_indigo_a200", R.style.ThemeOverlay_material_indigo_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_blue_a200", R.style.ThemeOverlay_material_indigo_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_light_blue_500", R.style.ThemeOverlay_material_indigo_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_cyan_500", R.style.ThemeOverlay_material_indigo_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_teal_500", R.style.ThemeOverlay_material_indigo_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_green_500", R.style.ThemeOverlay_material_indigo_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_light_green_500", R.style.ThemeOverlay_material_indigo_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_lime_500", R.style.ThemeOverlay_material_indigo_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_yellow_500", R.style.ThemeOverlay_material_indigo_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_amber_500", R.style.ThemeOverlay_material_indigo_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_orange_500", R.style.ThemeOverlay_material_indigo_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_deep_orange_500", R.style.ThemeOverlay_material_indigo_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_brown_500", R.style.ThemeOverlay_material_indigo_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_grey_500", R.style.ThemeOverlay_material_indigo_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_indigo_500.material_blue_grey_500", R.style.ThemeOverlay_material_indigo_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.colorAccent", R.style.ThemeOverlay_material_blue_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_red_a200", R.style.ThemeOverlay_material_blue_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_pink_a200", R.style.ThemeOverlay_material_blue_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_purple_a200", R.style.ThemeOverlay_material_blue_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_deep_purple_a200", R.style.ThemeOverlay_material_blue_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_indigo_a200", R.style.ThemeOverlay_material_blue_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_blue_a200", R.style.ThemeOverlay_material_blue_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_light_blue_500", R.style.ThemeOverlay_material_blue_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_cyan_500", R.style.ThemeOverlay_material_blue_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_teal_500", R.style.ThemeOverlay_material_blue_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_green_500", R.style.ThemeOverlay_material_blue_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_light_green_500", R.style.ThemeOverlay_material_blue_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_lime_500", R.style.ThemeOverlay_material_blue_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_yellow_500", R.style.ThemeOverlay_material_blue_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_amber_500", R.style.ThemeOverlay_material_blue_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_orange_500", R.style.ThemeOverlay_material_blue_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_deep_orange_500", R.style.ThemeOverlay_material_blue_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_brown_500", R.style.ThemeOverlay_material_blue_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_grey_500", R.style.ThemeOverlay_material_blue_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_blue_500.material_blue_grey_500", R.style.ThemeOverlay_material_blue_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.colorAccent", R.style.ThemeOverlay_material_light_blue_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_red_a200", R.style.ThemeOverlay_material_light_blue_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_pink_a200", R.style.ThemeOverlay_material_light_blue_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_purple_a200", R.style.ThemeOverlay_material_light_blue_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_deep_purple_a200", R.style.ThemeOverlay_material_light_blue_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_indigo_a200", R.style.ThemeOverlay_material_light_blue_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_blue_a200", R.style.ThemeOverlay_material_light_blue_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_light_blue_500", R.style.ThemeOverlay_material_light_blue_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_cyan_500", R.style.ThemeOverlay_material_light_blue_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_teal_500", R.style.ThemeOverlay_material_light_blue_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_green_500", R.style.ThemeOverlay_material_light_blue_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_light_green_500", R.style.ThemeOverlay_material_light_blue_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_lime_500", R.style.ThemeOverlay_material_light_blue_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_yellow_500", R.style.ThemeOverlay_material_light_blue_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_amber_500", R.style.ThemeOverlay_material_light_blue_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_orange_500", R.style.ThemeOverlay_material_light_blue_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_deep_orange_500", R.style.ThemeOverlay_material_light_blue_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_brown_500", R.style.ThemeOverlay_material_light_blue_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_grey_500", R.style.ThemeOverlay_material_light_blue_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_light_blue_500.material_blue_grey_500", R.style.ThemeOverlay_material_light_blue_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.colorAccent", R.style.ThemeOverlay_material_cyan_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_red_a200", R.style.ThemeOverlay_material_cyan_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_pink_a200", R.style.ThemeOverlay_material_cyan_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_purple_a200", R.style.ThemeOverlay_material_cyan_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_deep_purple_a200", R.style.ThemeOverlay_material_cyan_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_indigo_a200", R.style.ThemeOverlay_material_cyan_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_blue_a200", R.style.ThemeOverlay_material_cyan_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_light_blue_500", R.style.ThemeOverlay_material_cyan_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_cyan_500", R.style.ThemeOverlay_material_cyan_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_teal_500", R.style.ThemeOverlay_material_cyan_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_green_500", R.style.ThemeOverlay_material_cyan_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_light_green_500", R.style.ThemeOverlay_material_cyan_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_lime_500", R.style.ThemeOverlay_material_cyan_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_yellow_500", R.style.ThemeOverlay_material_cyan_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_amber_500", R.style.ThemeOverlay_material_cyan_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_orange_500", R.style.ThemeOverlay_material_cyan_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_deep_orange_500", R.style.ThemeOverlay_material_cyan_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_brown_500", R.style.ThemeOverlay_material_cyan_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_grey_500", R.style.ThemeOverlay_material_cyan_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_cyan_500.material_blue_grey_500", R.style.ThemeOverlay_material_cyan_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.colorAccent", R.style.ThemeOverlay_material_teal_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_red_a200", R.style.ThemeOverlay_material_teal_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_pink_a200", R.style.ThemeOverlay_material_teal_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_purple_a200", R.style.ThemeOverlay_material_teal_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_deep_purple_a200", R.style.ThemeOverlay_material_teal_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_indigo_a200", R.style.ThemeOverlay_material_teal_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_blue_a200", R.style.ThemeOverlay_material_teal_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_light_blue_500", R.style.ThemeOverlay_material_teal_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_cyan_500", R.style.ThemeOverlay_material_teal_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_teal_500", R.style.ThemeOverlay_material_teal_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_green_500", R.style.ThemeOverlay_material_teal_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_light_green_500", R.style.ThemeOverlay_material_teal_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_lime_500", R.style.ThemeOverlay_material_teal_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_yellow_500", R.style.ThemeOverlay_material_teal_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_amber_500", R.style.ThemeOverlay_material_teal_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_orange_500", R.style.ThemeOverlay_material_teal_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_deep_orange_500", R.style.ThemeOverlay_material_teal_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_brown_500", R.style.ThemeOverlay_material_teal_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_grey_500", R.style.ThemeOverlay_material_teal_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_teal_500.material_blue_grey_500", R.style.ThemeOverlay_material_teal_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_green_500.colorAccent", R.style.ThemeOverlay_material_green_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_green_500.material_red_a200", R.style.ThemeOverlay_material_green_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_green_500.material_pink_a200", R.style.ThemeOverlay_material_green_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_green_500.material_purple_a200", R.style.ThemeOverlay_material_green_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_green_500.material_deep_purple_a200", R.style.ThemeOverlay_material_green_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_green_500.material_indigo_a200", R.style.ThemeOverlay_material_green_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_green_500.material_blue_a200", R.style.ThemeOverlay_material_green_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_green_500.material_light_blue_500", R.style.ThemeOverlay_material_green_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_cyan_500", R.style.ThemeOverlay_material_green_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_teal_500", R.style.ThemeOverlay_material_green_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_green_500", R.style.ThemeOverlay_material_green_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_light_green_500", R.style.ThemeOverlay_material_green_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_lime_500", R.style.ThemeOverlay_material_green_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_yellow_500", R.style.ThemeOverlay_material_green_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_amber_500", R.style.ThemeOverlay_material_green_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_orange_500", R.style.ThemeOverlay_material_green_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_deep_orange_500", R.style.ThemeOverlay_material_green_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_brown_500", R.style.ThemeOverlay_material_green_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_grey_500", R.style.ThemeOverlay_material_green_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_green_500.material_blue_grey_500", R.style.ThemeOverlay_material_green_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.colorAccent", R.style.ThemeOverlay_material_light_green_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_red_a200", R.style.ThemeOverlay_material_light_green_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_pink_a200", R.style.ThemeOverlay_material_light_green_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_purple_a200", R.style.ThemeOverlay_material_light_green_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_deep_purple_a200", R.style.ThemeOverlay_material_light_green_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_indigo_a200", R.style.ThemeOverlay_material_light_green_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_blue_a200", R.style.ThemeOverlay_material_light_green_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_light_blue_500", R.style.ThemeOverlay_material_light_green_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_cyan_500", R.style.ThemeOverlay_material_light_green_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_teal_500", R.style.ThemeOverlay_material_light_green_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_green_500", R.style.ThemeOverlay_material_light_green_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_light_green_500", R.style.ThemeOverlay_material_light_green_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_lime_500", R.style.ThemeOverlay_material_light_green_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_yellow_500", R.style.ThemeOverlay_material_light_green_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_amber_500", R.style.ThemeOverlay_material_light_green_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_orange_500", R.style.ThemeOverlay_material_light_green_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_deep_orange_500", R.style.ThemeOverlay_material_light_green_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_brown_500", R.style.ThemeOverlay_material_light_green_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_grey_500", R.style.ThemeOverlay_material_light_green_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_light_green_500.material_blue_grey_500", R.style.ThemeOverlay_material_light_green_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.colorAccent", R.style.ThemeOverlay_material_lime_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_red_a200", R.style.ThemeOverlay_material_lime_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_pink_a200", R.style.ThemeOverlay_material_lime_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_purple_a200", R.style.ThemeOverlay_material_lime_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_deep_purple_a200", R.style.ThemeOverlay_material_lime_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_indigo_a200", R.style.ThemeOverlay_material_lime_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_blue_a200", R.style.ThemeOverlay_material_lime_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_light_blue_500", R.style.ThemeOverlay_material_lime_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_cyan_500", R.style.ThemeOverlay_material_lime_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_teal_500", R.style.ThemeOverlay_material_lime_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_green_500", R.style.ThemeOverlay_material_lime_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_light_green_500", R.style.ThemeOverlay_material_lime_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_lime_500", R.style.ThemeOverlay_material_lime_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_yellow_500", R.style.ThemeOverlay_material_lime_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_amber_500", R.style.ThemeOverlay_material_lime_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_orange_500", R.style.ThemeOverlay_material_lime_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_deep_orange_500", R.style.ThemeOverlay_material_lime_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_brown_500", R.style.ThemeOverlay_material_lime_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_grey_500", R.style.ThemeOverlay_material_lime_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_lime_500.material_blue_grey_500", R.style.ThemeOverlay_material_lime_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.colorAccent", R.style.ThemeOverlay_material_yellow_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_red_a200", R.style.ThemeOverlay_material_yellow_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_pink_a200", R.style.ThemeOverlay_material_yellow_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_purple_a200", R.style.ThemeOverlay_material_yellow_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_deep_purple_a200", R.style.ThemeOverlay_material_yellow_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_indigo_a200", R.style.ThemeOverlay_material_yellow_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_blue_a200", R.style.ThemeOverlay_material_yellow_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_light_blue_500", R.style.ThemeOverlay_material_yellow_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_cyan_500", R.style.ThemeOverlay_material_yellow_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_teal_500", R.style.ThemeOverlay_material_yellow_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_green_500", R.style.ThemeOverlay_material_yellow_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_light_green_500", R.style.ThemeOverlay_material_yellow_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_lime_500", R.style.ThemeOverlay_material_yellow_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_yellow_500", R.style.ThemeOverlay_material_yellow_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_amber_500", R.style.ThemeOverlay_material_yellow_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_orange_500", R.style.ThemeOverlay_material_yellow_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_deep_orange_500", R.style.ThemeOverlay_material_yellow_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_brown_500", R.style.ThemeOverlay_material_yellow_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_grey_500", R.style.ThemeOverlay_material_yellow_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_yellow_500.material_blue_grey_500", R.style.ThemeOverlay_material_yellow_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.colorAccent", R.style.ThemeOverlay_material_amber_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_red_a200", R.style.ThemeOverlay_material_amber_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_pink_a200", R.style.ThemeOverlay_material_amber_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_purple_a200", R.style.ThemeOverlay_material_amber_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_deep_purple_a200", R.style.ThemeOverlay_material_amber_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_indigo_a200", R.style.ThemeOverlay_material_amber_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_blue_a200", R.style.ThemeOverlay_material_amber_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_light_blue_500", R.style.ThemeOverlay_material_amber_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_cyan_500", R.style.ThemeOverlay_material_amber_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_teal_500", R.style.ThemeOverlay_material_amber_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_green_500", R.style.ThemeOverlay_material_amber_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_light_green_500", R.style.ThemeOverlay_material_amber_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_lime_500", R.style.ThemeOverlay_material_amber_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_yellow_500", R.style.ThemeOverlay_material_amber_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_amber_500", R.style.ThemeOverlay_material_amber_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_orange_500", R.style.ThemeOverlay_material_amber_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_deep_orange_500", R.style.ThemeOverlay_material_amber_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_brown_500", R.style.ThemeOverlay_material_amber_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_grey_500", R.style.ThemeOverlay_material_amber_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_amber_500.material_blue_grey_500", R.style.ThemeOverlay_material_amber_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.colorAccent", R.style.ThemeOverlay_material_orange_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_red_a200", R.style.ThemeOverlay_material_orange_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_pink_a200", R.style.ThemeOverlay_material_orange_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_purple_a200", R.style.ThemeOverlay_material_orange_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_deep_purple_a200", R.style.ThemeOverlay_material_orange_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_indigo_a200", R.style.ThemeOverlay_material_orange_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_blue_a200", R.style.ThemeOverlay_material_orange_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_light_blue_500", R.style.ThemeOverlay_material_orange_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_cyan_500", R.style.ThemeOverlay_material_orange_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_teal_500", R.style.ThemeOverlay_material_orange_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_green_500", R.style.ThemeOverlay_material_orange_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_light_green_500", R.style.ThemeOverlay_material_orange_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_lime_500", R.style.ThemeOverlay_material_orange_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_yellow_500", R.style.ThemeOverlay_material_orange_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_amber_500", R.style.ThemeOverlay_material_orange_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_orange_500", R.style.ThemeOverlay_material_orange_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_deep_orange_500", R.style.ThemeOverlay_material_orange_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_brown_500", R.style.ThemeOverlay_material_orange_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_grey_500", R.style.ThemeOverlay_material_orange_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_orange_500.material_blue_grey_500", R.style.ThemeOverlay_material_orange_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.colorAccent", R.style.ThemeOverlay_material_deep_orange_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_red_a200", R.style.ThemeOverlay_material_deep_orange_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_pink_a200", R.style.ThemeOverlay_material_deep_orange_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_purple_a200", R.style.ThemeOverlay_material_deep_orange_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_deep_purple_a200", R.style.ThemeOverlay_material_deep_orange_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_indigo_a200", R.style.ThemeOverlay_material_deep_orange_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_blue_a200", R.style.ThemeOverlay_material_deep_orange_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_light_blue_500", R.style.ThemeOverlay_material_deep_orange_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_cyan_500", R.style.ThemeOverlay_material_deep_orange_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_teal_500", R.style.ThemeOverlay_material_deep_orange_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_green_500", R.style.ThemeOverlay_material_deep_orange_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_light_green_500", R.style.ThemeOverlay_material_deep_orange_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_lime_500", R.style.ThemeOverlay_material_deep_orange_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_yellow_500", R.style.ThemeOverlay_material_deep_orange_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_amber_500", R.style.ThemeOverlay_material_deep_orange_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_orange_500", R.style.ThemeOverlay_material_deep_orange_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_deep_orange_500", R.style.ThemeOverlay_material_deep_orange_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_brown_500", R.style.ThemeOverlay_material_deep_orange_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_grey_500", R.style.ThemeOverlay_material_deep_orange_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_deep_orange_500.material_blue_grey_500", R.style.ThemeOverlay_material_deep_orange_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.colorAccent", R.style.ThemeOverlay_material_brown_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_red_a200", R.style.ThemeOverlay_material_brown_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_pink_a200", R.style.ThemeOverlay_material_brown_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_purple_a200", R.style.ThemeOverlay_material_brown_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_deep_purple_a200", R.style.ThemeOverlay_material_brown_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_indigo_a200", R.style.ThemeOverlay_material_brown_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_blue_a200", R.style.ThemeOverlay_material_brown_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_light_blue_500", R.style.ThemeOverlay_material_brown_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_cyan_500", R.style.ThemeOverlay_material_brown_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_teal_500", R.style.ThemeOverlay_material_brown_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_green_500", R.style.ThemeOverlay_material_brown_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_light_green_500", R.style.ThemeOverlay_material_brown_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_lime_500", R.style.ThemeOverlay_material_brown_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_yellow_500", R.style.ThemeOverlay_material_brown_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_amber_500", R.style.ThemeOverlay_material_brown_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_orange_500", R.style.ThemeOverlay_material_brown_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_deep_orange_500", R.style.ThemeOverlay_material_brown_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_brown_500", R.style.ThemeOverlay_material_brown_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_grey_500", R.style.ThemeOverlay_material_brown_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_brown_500.material_blue_grey_500", R.style.ThemeOverlay_material_brown_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.colorAccent", R.style.ThemeOverlay_material_grey_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_red_a200", R.style.ThemeOverlay_material_grey_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_pink_a200", R.style.ThemeOverlay_material_grey_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_purple_a200", R.style.ThemeOverlay_material_grey_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_deep_purple_a200", R.style.ThemeOverlay_material_grey_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_indigo_a200", R.style.ThemeOverlay_material_grey_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_blue_a200", R.style.ThemeOverlay_material_grey_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_light_blue_500", R.style.ThemeOverlay_material_grey_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_cyan_500", R.style.ThemeOverlay_material_grey_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_teal_500", R.style.ThemeOverlay_material_grey_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_green_500", R.style.ThemeOverlay_material_grey_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_light_green_500", R.style.ThemeOverlay_material_grey_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_lime_500", R.style.ThemeOverlay_material_grey_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_yellow_500", R.style.ThemeOverlay_material_grey_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_amber_500", R.style.ThemeOverlay_material_grey_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_orange_500", R.style.ThemeOverlay_material_grey_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_deep_orange_500", R.style.ThemeOverlay_material_grey_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_brown_500", R.style.ThemeOverlay_material_grey_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_grey_500", R.style.ThemeOverlay_material_grey_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_grey_500.material_blue_grey_500", R.style.ThemeOverlay_material_grey_500_material_blue_grey_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.colorAccent", R.style.ThemeOverlay_material_blue_grey_500_colorAccent);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_red_a200", R.style.ThemeOverlay_material_blue_grey_500_material_red_a200);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_pink_a200", R.style.ThemeOverlay_material_blue_grey_500_material_pink_a200);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_purple_a200", R.style.ThemeOverlay_material_blue_grey_500_material_purple_a200);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_deep_purple_a200", R.style.ThemeOverlay_material_blue_grey_500_material_deep_purple_a200);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_indigo_a200", R.style.ThemeOverlay_material_blue_grey_500_material_indigo_a200);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_blue_a200", R.style.ThemeOverlay_material_blue_grey_500_material_blue_a200);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_light_blue_500", R.style.ThemeOverlay_material_blue_grey_500_material_light_blue_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_cyan_500", R.style.ThemeOverlay_material_blue_grey_500_material_cyan_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_teal_500", R.style.ThemeOverlay_material_blue_grey_500_material_teal_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_green_500", R.style.ThemeOverlay_material_blue_grey_500_material_green_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_light_green_500", R.style.ThemeOverlay_material_blue_grey_500_material_light_green_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_lime_500", R.style.ThemeOverlay_material_blue_grey_500_material_lime_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_yellow_500", R.style.ThemeOverlay_material_blue_grey_500_material_yellow_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_amber_500", R.style.ThemeOverlay_material_blue_grey_500_material_amber_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_orange_500", R.style.ThemeOverlay_material_blue_grey_500_material_orange_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_deep_orange_500", R.style.ThemeOverlay_material_blue_grey_500_material_deep_orange_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_brown_500", R.style.ThemeOverlay_material_blue_grey_500_material_brown_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_grey_500", R.style.ThemeOverlay_material_blue_grey_500_material_grey_500);
colorThemeMap.put("ThemeOverlay.material_blue_grey_500.material_blue_grey_500", R.style.ThemeOverlay_material_blue_grey_500_material_blue_grey_500);
}
private static final String THEME_DEFAULT = "DEFAULT";
private static final String THEME_BLACK = "BLACK";
private static boolean isBlackNightTheme() {
return preferences.getBoolean("black_dark_theme", false);
}
public static String getNightTheme(Context context) {
if (isBlackNightTheme()
&& ResourceUtils.isNightMode(context.getResources().getConfiguration()))
return THEME_BLACK;
return THEME_DEFAULT;
}
@StyleRes
public static int getNightThemeStyleRes(Context context) {
switch (getNightTheme(context)) {
case THEME_BLACK:
return R.style.ThemeOverlay_Black;
case THEME_DEFAULT:
default:
return R.style.ThemeOverlay;
}
}
public static String getColorTheme(Context context) {
String primaryColorEntryName = "colorPrimary";
int colorPrimary = preferences.getInt("primary_color", context.getColor(R.color.colorPrimary));
for (CustomThemeColor color : CustomThemeColors.Primary.values()) {
if (colorPrimary == context.getColor(color.getResourceId())) {
primaryColorEntryName = color.getResourceEntryName();
break;
}
}
String accentColorEntryName = "colorAccent";
int colorAccent = preferences.getInt("accent_color", context.getColor(R.color.colorAccent));
for (CustomThemeColor color : CustomThemeColors.Accent.values()) {
if (colorAccent == context.getColor(color.getResourceId())) {
accentColorEntryName = color.getResourceEntryName();
break;
}
}
return "ThemeOverlay." + primaryColorEntryName + "." + accentColorEntryName;
}
@StyleRes
public static int getColorThemeStyleRes(Context context) {
Integer theme = colorThemeMap.get(getColorTheme(context));
if (theme == null) {
return R.style.ThemeOverlay_colorPrimary_colorAccent;
}
return theme;
}
}

View File

@ -0,0 +1,187 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.util.theme;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.widget.ImageView;
import androidx.core.content.ContextCompat;
import androidx.core.content.res.TypedArrayUtils;
import androidx.preference.DialogPreference;
import androidx.preference.PreferenceViewHolder;
import com.takisoft.colorpicker.ColorStateDrawable;
import com.takisoft.preferencex.PreferenceFragmentCompat;
import io.github.lsposed.manager.R;
public class ThemeColorPreference extends DialogPreference {
static {
PreferenceFragmentCompat.registerPreferenceFragment(ThemeColorPreference.class,
ThemeColorPreferenceDialogFragmentCompat.class);
}
private final ThemeUtil.CustomThemeColors[] colors;
private ThemeUtil.CustomThemeColors color;
private ImageView colorWidget;
public ThemeColorPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
colors = ThemeUtil.CustomThemeColors.values();
setWidgetLayoutResource(R.layout.preference_widget_color_swatch);
}
public ThemeColorPreference(Context context, AttributeSet attrs, int defStyleAttr) {
this(context, attrs, defStyleAttr, 0);
}
@SuppressLint("RestrictedApi")
public ThemeColorPreference(Context context, AttributeSet attrs) {
this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
android.R.attr.dialogPreferenceStyle));
}
public ThemeColorPreference(Context context) {
this(context, null);
}
@Override
public void onBindViewHolder(PreferenceViewHolder holder) {
super.onBindViewHolder(holder);
colorWidget = (ImageView) holder.findViewById(R.id.color_picker_widget);
setColorOnWidget(color);
}
private void setColorOnWidget(ThemeUtil.CustomThemeColors color) {
if (colorWidget == null) {
return;
}
Drawable drawable = getContext().getDrawable(R.drawable.colorpickerpreference_pref_swatch);
drawable.setTint(getContext().getColor(color.getResourceId()));
colorWidget.setImageDrawable(drawable);
}
public ThemeUtil.CustomThemeColors[] getColors() {
return colors;
}
private void setInternalColor(ThemeUtil.CustomThemeColors color, boolean force) {
ThemeUtil.CustomThemeColors oldColor = ThemeUtil.CustomThemeColors.valueOf(getPersistedString("COLOR_PRIMARY"));
boolean changed = !oldColor.equals(color);
if (changed || force) {
this.color = color;
persistString(color.toString());
setColorOnWidget(color);
notifyChanged();
}
}
public ThemeUtil.CustomThemeColors getColor() {
return color;
}
public void setColor(ThemeUtil.CustomThemeColors color) {
setInternalColor(color, false);
}
@Override
protected Object onGetDefaultValue(TypedArray a, int index) {
return a.getString(index);
}
@Override
protected void onSetInitialValue(Object defaultValueObj) {
setInternalColor(ThemeUtil.CustomThemeColors.valueOf(getPersistedString(ThemeUtil.CustomThemeColors.COLOR_PRIMARY.toString())), true);
}
@Override
protected Parcelable onSaveInstanceState() {
final Parcelable superState = super.onSaveInstanceState();
if (isPersistent()) {
// No need to save instance state since it's persistent
return superState;
}
final SavedState myState = new SavedState(superState);
myState.color = color.toString();
return myState;
}
@Override
protected void onRestoreInstanceState(Parcelable state) {
if (state == null || !state.getClass().equals(SavedState.class)) {
// Didn't save state for us in onSaveInstanceState
super.onRestoreInstanceState(state);
return;
}
SavedState myState = (SavedState) state;
super.onRestoreInstanceState(myState.getSuperState());
setColor(ThemeUtil.CustomThemeColors.valueOf(myState.color));
}
private static class SavedState extends BaseSavedState {
private String color;
public SavedState(Parcel source) {
super(source);
color = source.readString();
}
public SavedState(Parcelable superState) {
super(superState);
}
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeString(color);
}
public static final Parcelable.Creator<SavedState> CREATOR =
new Parcelable.Creator<SavedState>() {
@Override
public SavedState createFromParcel(Parcel in) {
return new SavedState(in);
}
@Override
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
}
}

View File

@ -0,0 +1,89 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.util.theme;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.preference.PreferenceDialogFragmentCompat;
import com.takisoft.colorpicker.ColorPickerDialog;
import com.takisoft.colorpicker.OnColorSelectedListener;
public class ThemeColorPreferenceDialogFragmentCompat extends PreferenceDialogFragmentCompat implements OnColorSelectedListener {
private int pickedColor;
ThemeUtil.CustomThemeColors[] themeColors;
private int[] colors;
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
ThemeColorPreference pref = getColorPickerPreference();
Activity activity = getActivity();
assert activity != null;
int selectedColor = activity.getColor(pref.getColor().getResourceId());
themeColors = pref.getColors();
colors = new int[themeColors.length];
for (int i = 0; i < themeColors.length; i++) {
colors[i] = activity.getColor(themeColors[i].getResourceId());
}
ColorPickerDialog.Params params = new ColorPickerDialog.Params.Builder(activity)
.setSelectedColor(selectedColor)
.setColors(colors)
.setSize(ColorPickerDialog.SIZE_SMALL)
.setSortColors(false)
.setColumns(0)
.build();
ColorPickerDialog dialog = new ColorPickerDialog(activity, this, params);
dialog.setTitle(pref.getDialogTitle());
return dialog;
}
@Override
public void onDialogClosed(boolean positiveResult) {
ThemeColorPreference preference = getColorPickerPreference();
if (positiveResult && preference.callChangeListener(pickedColor)) {
for (int i = 0; i < colors.length; i++) {
if (colors[i] == pickedColor) {
preference.setColor(themeColors[i]);
}
}
}
}
@Override
public void onColorSelected(int color) {
this.pickedColor = color;
super.onClick(getDialog(), DialogInterface.BUTTON_POSITIVE);
}
ThemeColorPreference getColorPickerPreference() {
return (ThemeColorPreference) getPreference();
}
}

View File

@ -0,0 +1,142 @@
/*
* This file is part of LSPosed.
*
* LSPosed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* LSPosed is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2021 LSPosed Contributors
*/
package io.github.lsposed.manager.util.theme;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.annotation.ColorRes;
import androidx.annotation.StyleRes;
import java.util.HashMap;
import java.util.Map;
import io.github.lsposed.manager.App;
import io.github.lsposed.manager.R;
import rikka.core.util.ResourceUtils;
public class ThemeUtil {
private static final Map<String, Integer> colorThemeMap = new HashMap<>();
private static final SharedPreferences preferences;
static {
preferences = App.getPreferences();
colorThemeMap.put("COLOR_PRIMARY", R.style.ThemeOverlay_color_primary);
colorThemeMap.put("MATERIAL_RED", R.style.ThemeOverlay_material_red);
colorThemeMap.put("MATERIAL_PINK", R.style.ThemeOverlay_material_pink);
colorThemeMap.put("MATERIAL_PURPLE", R.style.ThemeOverlay_material_purple);
colorThemeMap.put("MATERIAL_DEEP_PURPLE", R.style.ThemeOverlay_material_deep_purple);
colorThemeMap.put("MATERIAL_INDIGO", R.style.ThemeOverlay_material_indigo);
colorThemeMap.put("MATERIAL_BLUE", R.style.ThemeOverlay_material_blue);
colorThemeMap.put("MATERIAL_LIGHT_BLUE", R.style.ThemeOverlay_material_light_blue);
colorThemeMap.put("MATERIAL_CYAN", R.style.ThemeOverlay_material_cyan);
colorThemeMap.put("MATERIAL_TEAL", R.style.ThemeOverlay_material_teal);
colorThemeMap.put("MATERIAL_GREEN", R.style.ThemeOverlay_material_green);
colorThemeMap.put("MATERIAL_LIGHT_GREEN", R.style.ThemeOverlay_material_light_green);
colorThemeMap.put("MATERIAL_LIME", R.style.ThemeOverlay_material_lime);
colorThemeMap.put("MATERIAL_YELLOW", R.style.ThemeOverlay_material_yellow);
colorThemeMap.put("MATERIAL_AMBER", R.style.ThemeOverlay_material_amber);
colorThemeMap.put("MATERIAL_ORANGE", R.style.ThemeOverlay_material_orange);
colorThemeMap.put("MATERIAL_DEEP_ORANGE", R.style.ThemeOverlay_material_deep_orange);
colorThemeMap.put("MATERIAL_BROWN", R.style.ThemeOverlay_material_brown);
colorThemeMap.put("MATERIAL_GREY", R.style.ThemeOverlay_material_grey);
colorThemeMap.put("MATERIAL_BLUE_GREY", R.style.ThemeOverlay_material_blue_grey);
}
private static final String THEME_DEFAULT = "DEFAULT";
private static final String THEME_BLACK = "BLACK";
private static boolean isBlackNightTheme() {
return preferences.getBoolean("black_dark_theme", false);
}
public static String getNightTheme(Context context) {
if (isBlackNightTheme()
&& ResourceUtils.isNightMode(context.getResources().getConfiguration()))
return THEME_BLACK;
return THEME_DEFAULT;
}
@StyleRes
public static int getNightThemeStyleRes(Context context) {
switch (getNightTheme(context)) {
case THEME_BLACK:
return R.style.ThemeOverlay_Black;
case THEME_DEFAULT:
default:
return R.style.ThemeOverlay;
}
}
public static String getColorTheme() {
String primaryColorEntryName = "COLOR_PRIMARY";
String colorPrimary = preferences.getString("theme_color", "COLOR_PRIMARY");
for (CustomThemeColors color : CustomThemeColors.values()) {
if (color.toString().equals(colorPrimary)) {
primaryColorEntryName = color.toString();
}
}
return primaryColorEntryName;
}
@StyleRes
public static int getColorThemeStyleRes() {
Integer theme = colorThemeMap.get(getColorTheme());
if (theme == null) {
return R.style.ThemeOverlay_color_primary;
}
return theme;
}
public enum CustomThemeColors {
COLOR_PRIMARY(R.color.color_primary),
MATERIAL_RED(R.color.material_red),
MATERIAL_PINK(R.color.material_pink),
MATERIAL_PURPLE(R.color.material_purple),
MATERIAL_DEEP_PURPLE(R.color.material_deep_purple),
MATERIAL_INDIGO(R.color.material_indigo),
MATERIAL_BLUE(R.color.material_blue),
MATERIAL_LIGHT_BLUE(R.color.material_light_blue),
MATERIAL_CYAN(R.color.material_cyan),
MATERIAL_TEAL(R.color.material_teal),
MATERIAL_GREEN(R.color.material_green),
MATERIAL_LIGHT_GREEN(R.color.material_light_green),
MATERIAL_LIME(R.color.material_lime),
MATERIAL_YELLOW(R.color.material_yellow),
MATERIAL_AMBER(R.color.material_amber),
MATERIAL_ORANGE(R.color.material_orange),
MATERIAL_DEEP_ORANGE(R.color.material_deep_orange),
MATERIAL_BROWN(R.color.material_brown),
MATERIAL_GREY(R.color.material_grey),
MATERIAL_BLUE_GREY(R.color.material_blue_grey);
@ColorRes
int resourceId;
CustomThemeColors(@ColorRes int resourceId) {
this.resourceId = resourceId;
}
public int getResourceId() {
return resourceId;
}
}
}

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ LSPosed is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2021 LSPosed Contributors
-->
<resources>
<color name="color_primary">@color/color_primary_dark</color>
</resources>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ LSPosed is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2021 LSPosed Contributors
-->
<resources>
<color name="material_red">@color/material_red_300</color>
<color name="material_pink">@color/material_pink_300</color>
<color name="material_purple">@color/material_purple_300</color>
<color name="material_deep_purple">@color/material_deep_purple_300</color>
<color name="material_indigo">@color/material_indigo_300</color>
<color name="material_blue">@color/material_blue_300</color>
<color name="material_light_blue">@color/material_light_blue_300</color>
<color name="material_cyan">@color/material_cyan_300</color>
<color name="material_teal">@color/material_teal_300</color>
<color name="material_green">@color/material_green_300</color>
<color name="material_light_green">@color/material_light_green_300</color>
<color name="material_lime">@color/material_lime_300</color>
<color name="material_yellow">@color/material_yellow_300</color>
<color name="material_amber">@color/material_amber_300</color>
<color name="material_orange">@color/material_orange_300</color>
<color name="material_deep_orange">@color/material_deep_orange_300</color>
<color name="material_brown">@color/material_brown_300</color>
<color name="material_grey">@color/material_grey_300</color>
<color name="material_blue_grey">@color/material_blue_grey_300</color>
</resources>

View File

@ -30,7 +30,6 @@
<string name="ModulesDetail">%d модулей включено</string>
<string name="Settings">Настройки</string>
<string name="about_source">https://github.com/LSPosed/LSPosed/</string>
<string name="accent_color">Цвет акцента</string>
<string name="android_framework">System Framework</string>
<string name="android_sdk">Android %2$s (%1$s, API %3$d)</string>
<string name="app_destroyed">Эта программа прекратила работу, пожалуйста, убедитесь, что загрузили ее из официального источника.</string>
@ -82,7 +81,6 @@
<string name="not_logcat">Это логи LSPosed Framework и модулей, если вам нужен Android logcat, вы можете попробовать наш модуль Magisk Log Catcher</string>
<string name="outdated_manager">Версия LSPosed Manager и LSPosed Core не согласуются. Пожалуйста, установите соответствующую версию.</string>
<string name="pref_title_disable_verbose_log">Отключить подробные логи</string>
<string name="primary_color">Основной цвет</string>
<string name="pure_black_dark_theme">Использовать черную тему</string>
<string name="requested_by_module">Рекомендуется</string>
<string name="scroll_bottom">Прокрутить вниз</string>

View File

@ -28,7 +28,6 @@
<string name="ModulesDetail">%d модулі(в) увімкнено</string>
<string name="Settings">Налаштування</string>
<string name="about_source">https://github.com/LSPosed/LSPosed/</string>
<string name="accent_color">Колір акценту</string>
<string name="android_framework">System Framework</string>
<string name="android_sdk">Android %2$s (%1$s, API %3$d)</string>
<string name="app_destroyed">Ця програма припинила роботу, будь ласка, переконайтесь, що завантажили її з офіційного джерела.</string>
@ -81,7 +80,6 @@
<string name="not_logcat">"Це звіт LSPosed Framework та модулів, якщо вам потрібен Android logcat, ви можете спробувати наш модуль Magisk Log Catcher"</string>
<string name="outdated_manager">Версія LSPosed Manager і LSPosed Core не узгоджуються. Будь ласка, встановіть відповідну версію.</string>
<string name="pref_title_disable_verbose_log">Вимкнути детальні звіти</string>
<string name="primary_color">Основний колір</string>
<string name="pure_black_dark_theme">Використовувати чисто чорну темну тему</string>
<string name="requested_by_module">Рекомендовано</string>
<string name="scroll_bottom">Прокрутити донизу</string>

View File

@ -113,8 +113,6 @@
<string name="sort_by_install_time_reverse">安装时间(降序)</string>
<string name="sort_by_update_time">更新时间</string>
<string name="sort_by_update_time_reverse">更新时间(降序)</string>
<string name="primary_color">主要色</string>
<string name="accent_color">强调色</string>
<string name="settings_group_theme">主题</string>
<string name="settings_enable_resources">启用资源钩子</string>
<string name="settings_enable_resources_summary"><b>警告: </b> 资源钩子已被弃用</string>
@ -172,4 +170,5 @@
<string name="about_view_source_code"><![CDATA[在 %s 查看源码<br/>加入我们的 %s 频道]]></string>
<string name="module_release_load_more">显示更旧的版本</string>
<string name="module_release_no_more">没有更旧的版本</string>
<string name="theme_color">主题颜色</string>
</resources>

View File

@ -113,7 +113,5 @@
<string name="sort_by_install_time_reverse">安裝時間(降序)</string>
<string name="sort_by_update_time">更新時間</string>
<string name="sort_by_update_time_reverse">更新時間(降序)</string>
<string name="primary_color">主要色</string>
<string name="accent_color">強調色</string>
<string name="settings_group_theme">主題</string>
</resources>

View File

@ -98,8 +98,6 @@
<string name="sort_by_install_time_reverse">安裝時間(降序)</string>
<string name="sort_by_update_time">更新時間</string>
<string name="sort_by_update_time_reverse">更新時間(降序)</string>
<string name="primary_color">主要色</string>
<string name="accent_color">強調色</string>
<string name="settings_group_theme">主題</string>
<string name="settings_variant">變體</string>
<string name="menu_show_system_apps">系統程式</string>

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
@ -20,8 +19,10 @@
-->
<resources>
<color name="colorPrimary">@color/material_blue_700</color>
<color name="colorAccent">@color/material_blue_700</color>
<color name="rippleTransparency_light">#34ffffff</color>
<color name="rippleTransparency_dark">#cbffffff</color>
<color name="color_primary_light">@color/google_blue_600</color>
<color name="color_primary_dark">@color/google_blue_300</color>
<color name="color_primary">@color/color_primary_light</color>
</resources>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ LSPosed is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2021 LSPosed Contributors
-->
<resources>
<color name="material_red">@color/material_red_500</color>
<color name="material_pink">@color/material_pink_500</color>
<color name="material_purple">@color/material_purple_500</color>
<color name="material_deep_purple">@color/material_deep_purple_500</color>
<color name="material_indigo">@color/material_indigo_500</color>
<color name="material_blue">@color/material_blue_500</color>
<color name="material_light_blue">@color/material_light_blue_500</color>
<color name="material_cyan">@color/material_cyan_500</color>
<color name="material_teal">@color/material_teal_500</color>
<color name="material_green">@color/material_green_500</color>
<color name="material_light_green">@color/material_light_green_500</color>
<color name="material_lime">@color/material_lime_500</color>
<color name="material_yellow">@color/material_yellow_500</color>
<color name="material_amber">@color/material_amber_500</color>
<color name="material_orange">@color/material_orange_500</color>
<color name="material_deep_orange">@color/material_deep_orange_500</color>
<color name="material_brown">@color/material_brown_500</color>
<color name="material_grey">@color/material_grey_500</color>
<color name="material_blue_grey">@color/material_blue_grey_500</color>
</resources>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ LSPosed is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2021 LSPosed Contributors
-->
<!-- @see https://chromium.googlesource.com/chromium/src/+/master/ui/webui/resources/cr_elements/shared_vars_css.html -->
<resources>
<color name="google_blue_600">#1A73E8</color>
<color name="google_blue_300">#8AB4F8</color>
<color name="google_grey_900">#202124</color>
</resources>

View File

@ -121,8 +121,6 @@
<string name="sort_by_install_time_reverse">Sort by install time (reverse)</string>
<string name="sort_by_update_time">Sort by update time</string>
<string name="sort_by_update_time_reverse">Sort by update time (reverse)</string>
<string name="primary_color">Primary color</string>
<string name="accent_color">Accent color</string>
<string name="settings_group_theme">Theme</string>
<string name="settings_variant">Variant</string>
<string name="menu_show_system_apps">System apps</string>
@ -177,4 +175,5 @@
<string name="about_view_source_code"><![CDATA[View source code at %s<br/>Join our %s channel]]></string>
<string name="module_release_load_more">Show older versions</string>
<string name="module_release_no_more">No more release</string>
<string name="theme_color">Theme color</string>
</resources>

View File

@ -14,7 +14,6 @@
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2020 EdXposed Contributors
~ Copyright (C) 2021 LSPosed Contributors
-->
@ -23,11 +22,12 @@
<style name="Base.AppTheme.Light" parent="Theme.Material.Light.LightStatusBar">
<item name="android:statusBarColor">?android:colorBackground</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimary">@color/material_blue_700</item>
<item name="colorPrimaryVariant">?colorPrimary</item>
<item name="colorSecondary">?colorPrimary</item>
<item name="colorSecondaryVariant">?colorPrimary</item>
<item name="colorOnSecondary">@android:color/white</item>
<item name="colorSurface">@android:color/white</item>
<item name="colorError">@color/material_red_500</item>
<item name="colorNormal">@color/material_green_500</item>
<item name="colorInstall">@color/material_blue_500</item>
@ -48,11 +48,12 @@
<style name="Theme.Light" parent="Base.AppTheme.Light" />
<style name="Base.AppTheme" parent="Theme.Material">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimary">@color/material_blue_700</item>
<item name="colorPrimaryVariant">?colorPrimary</item>
<item name="colorSecondary">?colorPrimary</item>
<item name="colorSecondaryVariant">?colorPrimary</item>
<item name="colorOnSecondary">@android:color/black</item>
<item name="colorSurface">@color/google_grey_900</item>
<item name="colorError">@color/material_red_700</item>
<item name="colorNormal">@color/material_green_700</item>
<item name="colorInstall">@color/material_blue_700</item>

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ LSPosed is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2021 LSPosed Contributors
-->
<resources>
<style name="ThemeOverlay.color_primary">
<item name="colorPrimary">@color/color_primary</item>
</style>
<style name="ThemeOverlay.material_red">
<item name="colorPrimary">@color/material_red</item>
</style>
<style name="ThemeOverlay.material_pink">
<item name="colorPrimary">@color/material_pink</item>
</style>
<style name="ThemeOverlay.material_purple">
<item name="colorPrimary">@color/material_purple</item>
</style>
<style name="ThemeOverlay.material_deep_purple">
<item name="colorPrimary">@color/material_deep_purple</item>
</style>
<style name="ThemeOverlay.material_indigo">
<item name="colorPrimary">@color/material_indigo</item>
</style>
<style name="ThemeOverlay.material_blue">
<item name="colorPrimary">@color/material_blue</item>
</style>
<style name="ThemeOverlay.material_light_blue">
<item name="colorPrimary">@color/material_light_blue</item>
</style>
<style name="ThemeOverlay.material_cyan">
<item name="colorPrimary">@color/material_cyan</item>
</style>
<style name="ThemeOverlay.material_teal">
<item name="colorPrimary">@color/material_teal</item>
</style>
<style name="ThemeOverlay.material_green">
<item name="colorPrimary">@color/material_green</item>
</style>
<style name="ThemeOverlay.material_light_green">
<item name="colorPrimary">@color/material_light_green</item>
</style>
<style name="ThemeOverlay.material_lime">
<item name="colorPrimary">@color/material_lime</item>
</style>
<style name="ThemeOverlay.material_yellow">
<item name="colorPrimary">@color/material_yellow</item>
</style>
<style name="ThemeOverlay.material_amber">
<item name="colorPrimary">@color/material_amber</item>
</style>
<style name="ThemeOverlay.material_orange">
<item name="colorPrimary">@color/material_orange</item>
</style>
<style name="ThemeOverlay.material_deep_orange">
<item name="colorPrimary">@color/material_deep_orange</item>
</style>
<style name="ThemeOverlay.material_brown">
<item name="colorPrimary">@color/material_brown</item>
</style>
<style name="ThemeOverlay.material_grey">
<item name="colorPrimary">@color/material_grey</item>
</style>
<style name="ThemeOverlay.material_blue_grey">
<item name="colorPrimary">@color/material_blue_grey</item>
</style>
</resources>

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify

View File

@ -37,17 +37,11 @@
<PreferenceCategory
android:title="@string/settings_group_theme"
app:iconSpaceReserved="false">
<io.github.lsposed.manager.ui.widget.ThemeColorPreference
android:defaultValue="#1976D2"
android:dialogTitle="@string/primary_color"
android:key="primary_color"
android:title="@string/primary_color"
app:iconSpaceReserved="false" />
<io.github.lsposed.manager.ui.widget.ThemeColorPreference
android:defaultValue="#e91e63"
android:dialogTitle="@string/accent_color"
android:key="accent_color"
android:title="@string/accent_color"
<io.github.lsposed.manager.util.theme.ThemeColorPreference
android:defaultValue=""
android:dialogTitle="@string/theme_color"
android:key="theme_color"
android:title="@string/theme_color"
app:iconSpaceReserved="false" />
<io.github.lsposed.manager.ui.widget.IntegerListPreference
android:defaultValue="-1"