From 07c05771aa80245a7757fc31d4e9583e17be6bad Mon Sep 17 00:00:00 2001 From: tehcneko <7764726+tehcneko@users.noreply.github.com> Date: Sun, 14 Feb 2021 16:07:37 +0800 Subject: [PATCH] [app] Nuke accent color --- .../manager/ui/activity/SettingsActivity.java | 15 +- .../ui/activity/base/BaseActivity.java | 6 +- .../ui/widget/ThemeColorPreference.java | 82 - .../manager/util/CustomThemeColor.java | 33 - .../manager/util/CustomThemeColors.java | 124 -- .../manager/util/NotificationUtil.java | 2 +- .../lsposed/manager/util/ThemeUtil.java | 499 ----- .../util/theme/ThemeColorPreference.java | 187 ++ ...meColorPreferenceDialogFragmentCompat.java | 89 + .../lsposed/manager/util/theme/ThemeUtil.java | 142 ++ app/src/main/res/values-night/colors.xml | 22 + .../main/res/values-night/colors_custom.xml | 42 + app/src/main/res/values-ru/strings.xml | 2 - app/src/main/res/values-uk/strings.xml | 2 - app/src/main/res/values-zh-rCN/strings.xml | 3 +- app/src/main/res/values-zh-rHK/strings.xml | 2 - app/src/main/res/values-zh-rTW/strings.xml | 2 - app/src/main/res/values/colors.xml | 9 +- app/src/main/res/values/colors_custom.xml | 42 + app/src/main/res/values/colors_google.xml | 25 + app/src/main/res/values/strings.xml | 3 +- app/src/main/res/values/themes.xml | 7 +- app/src/main/res/values/themes_custom.xml | 101 + app/src/main/res/values/themes_overlay.xml | 1681 ----------------- app/src/main/res/xml/file_paths.xml | 3 +- app/src/main/res/xml/prefs.xml | 16 +- 26 files changed, 673 insertions(+), 2468 deletions(-) delete mode 100644 app/src/main/java/io/github/lsposed/manager/ui/widget/ThemeColorPreference.java delete mode 100644 app/src/main/java/io/github/lsposed/manager/util/CustomThemeColor.java delete mode 100644 app/src/main/java/io/github/lsposed/manager/util/CustomThemeColors.java delete mode 100644 app/src/main/java/io/github/lsposed/manager/util/ThemeUtil.java create mode 100644 app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreference.java create mode 100644 app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreferenceDialogFragmentCompat.java create mode 100644 app/src/main/java/io/github/lsposed/manager/util/theme/ThemeUtil.java create mode 100644 app/src/main/res/values-night/colors.xml create mode 100644 app/src/main/res/values-night/colors_custom.xml create mode 100644 app/src/main/res/values/colors_custom.xml create mode 100644 app/src/main/res/values/colors_google.xml create mode 100644 app/src/main/res/values/themes_custom.xml diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/SettingsActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/SettingsActivity.java index 4dbaa7f2..cb1916ea 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/SettingsActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/SettingsActivity.java @@ -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 { diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/base/BaseActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/base/BaseActivity.java index 323e160b..6165d731 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/base/BaseActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/base/BaseActivity.java @@ -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 diff --git a/app/src/main/java/io/github/lsposed/manager/ui/widget/ThemeColorPreference.java b/app/src/main/java/io/github/lsposed/manager/ui/widget/ThemeColorPreference.java deleted file mode 100644 index 08551107..00000000 --- a/app/src/main/java/io/github/lsposed/manager/ui/widget/ThemeColorPreference.java +++ /dev/null @@ -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 . - * - * 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); - } -} \ No newline at end of file diff --git a/app/src/main/java/io/github/lsposed/manager/util/CustomThemeColor.java b/app/src/main/java/io/github/lsposed/manager/util/CustomThemeColor.java deleted file mode 100644 index 912ec69b..00000000 --- a/app/src/main/java/io/github/lsposed/manager/util/CustomThemeColor.java +++ /dev/null @@ -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 . - * - * 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(); -} diff --git a/app/src/main/java/io/github/lsposed/manager/util/CustomThemeColors.java b/app/src/main/java/io/github/lsposed/manager/util/CustomThemeColors.java deleted file mode 100644 index 0bc414c8..00000000 --- a/app/src/main/java/io/github/lsposed/manager/util/CustomThemeColors.java +++ /dev/null @@ -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 . - * - * 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; - } - } -} diff --git a/app/src/main/java/io/github/lsposed/manager/util/NotificationUtil.java b/app/src/main/java/io/github/lsposed/manager/util/NotificationUtil.java index a9e18f24..9f8a5d7c 100644 --- a/app/src/main/java/io/github/lsposed/manager/util/NotificationUtil.java +++ b/app/src/main/java/io/github/lsposed/manager/util/NotificationUtil.java @@ -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); diff --git a/app/src/main/java/io/github/lsposed/manager/util/ThemeUtil.java b/app/src/main/java/io/github/lsposed/manager/util/ThemeUtil.java deleted file mode 100644 index 6f19a466..00000000 --- a/app/src/main/java/io/github/lsposed/manager/util/ThemeUtil.java +++ /dev/null @@ -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 . - * - * 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 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; - } - -} diff --git a/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreference.java b/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreference.java new file mode 100644 index 00000000..d3960f9d --- /dev/null +++ b/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreference.java @@ -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 . + * + * 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 CREATOR = + new Parcelable.Creator() { + @Override + public SavedState createFromParcel(Parcel in) { + return new SavedState(in); + } + + @Override + public SavedState[] newArray(int size) { + return new SavedState[size]; + } + }; + } +} \ No newline at end of file diff --git a/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreferenceDialogFragmentCompat.java b/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreferenceDialogFragmentCompat.java new file mode 100644 index 00000000..ea715e0c --- /dev/null +++ b/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeColorPreferenceDialogFragmentCompat.java @@ -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 . + * + * 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(); + } +} diff --git a/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeUtil.java b/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeUtil.java new file mode 100644 index 00000000..0a5ece18 --- /dev/null +++ b/app/src/main/java/io/github/lsposed/manager/util/theme/ThemeUtil.java @@ -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 . + * + * 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 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; + } + } +} diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml new file mode 100644 index 00000000..bea2dc86 --- /dev/null +++ b/app/src/main/res/values-night/colors.xml @@ -0,0 +1,22 @@ + + + + @color/color_primary_dark + diff --git a/app/src/main/res/values-night/colors_custom.xml b/app/src/main/res/values-night/colors_custom.xml new file mode 100644 index 00000000..af373e2b --- /dev/null +++ b/app/src/main/res/values-night/colors_custom.xml @@ -0,0 +1,42 @@ + + + + + + @color/material_red_300 + @color/material_pink_300 + @color/material_purple_300 + @color/material_deep_purple_300 + @color/material_indigo_300 + @color/material_blue_300 + @color/material_light_blue_300 + @color/material_cyan_300 + @color/material_teal_300 + @color/material_green_300 + @color/material_light_green_300 + @color/material_lime_300 + @color/material_yellow_300 + @color/material_amber_300 + @color/material_orange_300 + @color/material_deep_orange_300 + @color/material_brown_300 + @color/material_grey_300 + @color/material_blue_grey_300 + diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 9bc451c7..6233a507 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -30,7 +30,6 @@ %d модулей включено Настройки https://github.com/LSPosed/LSPosed/ - Цвет акцента System Framework Android %2$s (%1$s, API %3$d) Эта программа прекратила работу, пожалуйста, убедитесь, что загрузили ее из официального источника. @@ -82,7 +81,6 @@ Это логи LSPosed Framework и модулей, если вам нужен Android logcat, вы можете попробовать наш модуль Magisk Log Catcher Версия LSPosed Manager и LSPosed Core не согласуются. Пожалуйста, установите соответствующую версию. Отключить подробные логи - Основной цвет Использовать черную тему Рекомендуется Прокрутить вниз diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index c0df7db5..7401635d 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -28,7 +28,6 @@ %d модулі(в) увімкнено Налаштування https://github.com/LSPosed/LSPosed/ - Колір акценту System Framework Android %2$s (%1$s, API %3$d) Ця програма припинила роботу, будь ласка, переконайтесь, що завантажили її з офіційного джерела. @@ -81,7 +80,6 @@ "Це звіт LSPosed Framework та модулів, якщо вам потрібен Android logcat, ви можете спробувати наш модуль Magisk Log Catcher" Версія LSPosed Manager і LSPosed Core не узгоджуються. Будь ласка, встановіть відповідну версію. Вимкнути детальні звіти - Основний колір Використовувати чисто чорну темну тему Рекомендовано Прокрутити донизу diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 65fa1649..71343144 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -113,8 +113,6 @@ 安装时间(降序) 更新时间 更新时间(降序) - 主要色 - 强调色 主题 启用资源钩子 警告: 资源钩子已被弃用 @@ -172,4 +170,5 @@ 加入我们的 %s 频道]]> 显示更旧的版本 没有更旧的版本 + 主题颜色 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 71b5dd24..9a6f4c1a 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -113,7 +113,5 @@ 安裝時間(降序) 更新時間 更新時間(降序) - 主要色 - 強調色 主題 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index d2997d46..23240067 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -98,8 +98,6 @@ 安裝時間(降序) 更新時間 更新時間(降序) - 主要色 - 強調色 主題 變體 系統程式 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index b99c490a..46bc6721 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,5 +1,4 @@ - - - @color/material_blue_700 - @color/material_blue_700 #34ffffff #cbffffff + + @color/google_blue_600 + @color/google_blue_300 + @color/color_primary_light diff --git a/app/src/main/res/values/colors_custom.xml b/app/src/main/res/values/colors_custom.xml new file mode 100644 index 00000000..7f500f6e --- /dev/null +++ b/app/src/main/res/values/colors_custom.xml @@ -0,0 +1,42 @@ + + + + + + @color/material_red_500 + @color/material_pink_500 + @color/material_purple_500 + @color/material_deep_purple_500 + @color/material_indigo_500 + @color/material_blue_500 + @color/material_light_blue_500 + @color/material_cyan_500 + @color/material_teal_500 + @color/material_green_500 + @color/material_light_green_500 + @color/material_lime_500 + @color/material_yellow_500 + @color/material_amber_500 + @color/material_orange_500 + @color/material_deep_orange_500 + @color/material_brown_500 + @color/material_grey_500 + @color/material_blue_grey_500 + diff --git a/app/src/main/res/values/colors_google.xml b/app/src/main/res/values/colors_google.xml new file mode 100644 index 00000000..9544d3de --- /dev/null +++ b/app/src/main/res/values/colors_google.xml @@ -0,0 +1,25 @@ + + + + + #1A73E8 + #8AB4F8 + #202124 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c9185716..226fff02 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -121,8 +121,6 @@ Sort by install time (reverse) Sort by update time Sort by update time (reverse) - Primary color - Accent color Theme Variant System apps @@ -177,4 +175,5 @@ Join our %s channel]]> Show older versions No more release + Theme color diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index e8ec833c..9784aa4b 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -14,7 +14,6 @@ ~ You should have received a copy of the GNU General Public License ~ along with LSPosed. If not, see . ~ - ~ Copyright (C) 2020 EdXposed Contributors ~ Copyright (C) 2021 LSPosed Contributors --> @@ -23,11 +22,12 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values/themes_overlay.xml b/app/src/main/res/values/themes_overlay.xml index 04352077..ecd2c8e3 100644 --- a/app/src/main/res/values/themes_overlay.xml +++ b/app/src/main/res/values/themes_overlay.xml @@ -14,7 +14,6 @@ ~ You should have received a copy of the GNU General Public License ~ along with LSPosed. If not, see . ~ - ~ Copyright (C) 2020 EdXposed Contributors ~ Copyright (C) 2021 LSPosed Contributors --> @@ -25,1684 +24,4 @@ @android:color/black @android:color/black - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/xml/file_paths.xml b/app/src/main/res/xml/file_paths.xml index d48e676b..3ca7f0c7 100644 --- a/app/src/main/res/xml/file_paths.xml +++ b/app/src/main/res/xml/file_paths.xml @@ -1,5 +1,4 @@ - -