diff --git a/app/src/main/java/io/github/lsposed/manager/adapters/ScopeAdapter.java b/app/src/main/java/io/github/lsposed/manager/adapters/ScopeAdapter.java index 4ebf9881..c3eee247 100644 --- a/app/src/main/java/io/github/lsposed/manager/adapters/ScopeAdapter.java +++ b/app/src/main/java/io/github/lsposed/manager/adapters/ScopeAdapter.java @@ -73,6 +73,7 @@ import io.github.lsposed.manager.ui.activity.AppListActivity; import io.github.lsposed.manager.ui.fragment.CompileDialogFragment; import io.github.lsposed.manager.util.GlideApp; import io.github.lsposed.manager.util.ModuleUtil; +import rikka.core.res.ResourcesKt; import rikka.widget.switchbar.SwitchBar; import static android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS; @@ -362,7 +363,7 @@ public class ScopeAdapter extends RecyclerView.Adapter if (!android) sb.append("\n"); String recommended = activity.getString(R.string.requested_by_module); sb.append(recommended); - final ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(activity.getThemedColor(R.attr.colorAccent)); + final ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(ResourcesKt.resolveColor(activity.getTheme(), R.attr.colorAccent)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { final TypefaceSpan typefaceSpan = new TypefaceSpan(Typeface.create("sans-serif-medium", Typeface.NORMAL)); sb.setSpan(typefaceSpan, sb.length() - recommended.length(), sb.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/AboutActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/AboutActivity.java index 70f10b87..d99efdca 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/AboutActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/AboutActivity.java @@ -27,6 +27,7 @@ import androidx.appcompat.app.ActionBar; import io.github.lsposed.manager.R; import io.github.lsposed.manager.databinding.ActivityAboutBinding; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.util.NavUtil; public class AboutActivity extends BaseActivity { diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/AppListActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/AppListActivity.java index 292b5f88..9cca48f4 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/AppListActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/AppListActivity.java @@ -27,7 +27,6 @@ import android.os.Handler; import android.os.Looper; import android.view.Menu; import android.view.MenuItem; -import android.view.View; import androidx.activity.result.ActivityResultLauncher; import androidx.activity.result.contract.ActivityResultContracts; @@ -44,6 +43,7 @@ import io.github.lsposed.manager.BuildConfig; import io.github.lsposed.manager.R; import io.github.lsposed.manager.adapters.ScopeAdapter; import io.github.lsposed.manager.databinding.ActivityAppListBinding; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.util.BackupUtils; import io.github.lsposed.manager.util.LinearLayoutManagerFix; import rikka.recyclerview.RecyclerViewKt; diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/BaseActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/BaseActivity.java deleted file mode 100644 index 5e30d45d..00000000 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/BaseActivity.java +++ /dev/null @@ -1,190 +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.activity; - -import android.content.Context; -import android.content.SharedPreferences; -import android.content.res.Configuration; -import android.content.res.Resources; -import android.content.res.TypedArray; -import android.graphics.Color; -import android.os.Build; -import android.os.Bundle; -import android.view.Window; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.annotation.StyleRes; -import androidx.appcompat.app.AlertDialog; -import androidx.core.content.ContextCompat; - -import java.util.Objects; - -import io.github.lsposed.manager.App; -import io.github.lsposed.manager.BuildConfig; -import io.github.lsposed.manager.Constants; -import io.github.lsposed.manager.R; -import io.github.lsposed.manager.util.CustomThemeColor; -import io.github.lsposed.manager.util.CustomThemeColors; -import io.github.lsposed.manager.util.NavUtil; -import io.github.lsposed.manager.util.Version; -import rikka.material.app.MaterialActivity; - -public class BaseActivity extends MaterialActivity { - - private static final String THEME_DEFAULT = "DEFAULT"; - private static final String THEME_BLACK = "BLACK"; - protected static SharedPreferences preferences; - private String theme; - - static { - preferences = App.getPreferences(); - } - - public static boolean isBlackNightTheme() { - return preferences.getBoolean("black_dark_theme", false); - } - - - public String getTheme(Context context) { - if (isBlackNightTheme() - && isNightMode(context.getResources().getConfiguration())) - return THEME_BLACK; - - return THEME_DEFAULT; - } - - public static boolean isNightMode(Configuration configuration) { - return (configuration.uiMode & Configuration.UI_MODE_NIGHT_YES) > 0; - } - - @StyleRes - public int getThemeStyleRes(Context context) { - switch (getTheme(context)) { - case THEME_BLACK: - return R.style.ThemeOverlay_Black; - case THEME_DEFAULT: - default: - return R.style.ThemeOverlay; - } - } - - @StyleRes - private int getCustomTheme() { - String baseThemeName = "ThemeOverlay"; - String customThemeName; - String primaryColorEntryName = "colorPrimary"; - for (CustomThemeColor color : CustomThemeColors.Primary.values()) { - if (preferences.getInt("primary_color", ContextCompat.getColor(this, R.color.colorPrimary)) - == ContextCompat.getColor(this, color.getResourceId())) { - primaryColorEntryName = color.getResourceEntryName(); - } - } - String accentColorEntryName = "colorAccent"; - for (CustomThemeColor color : CustomThemeColors.Accent.values()) { - if (preferences.getInt("accent_color", ContextCompat.getColor(this, R.color.colorAccent)) - == ContextCompat.getColor(this, color.getResourceId())) { - accentColorEntryName = color.getResourceEntryName(); - } - } - customThemeName = baseThemeName + "." + primaryColorEntryName + "." + accentColorEntryName; - return getResources().getIdentifier(customThemeName, "style", getPackageName()); - } - - @Override - public void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - theme = getTheme(this) + getCustomTheme(); - - // make sure the versions are consistent - String coreVersionStr = Constants.getXposedVersion(); - if (coreVersionStr != null) { - Version managerVersion = new Version(BuildConfig.VERSION_NAME); - Version coreVersion = new Version(coreVersionStr); - if (!managerVersion.equals(coreVersion)) { - new AlertDialog.Builder(this) - .setMessage(R.string.outdated_manager) - .setPositiveButton(R.string.ok, (dialog, id) -> { - NavUtil.startURL(this, getString(R.string.about_source)); - finish(); - }) - .setCancelable(false) - .show(); - } - } - } - - public int getThemedColor(int id) { - TypedArray typedArray = getTheme().obtainStyledAttributes(new int[]{id}); - int color = typedArray.getColor(0, 0); - typedArray.recycle(); - return color; - } - - @Override - protected void onResume() { - super.onResume(); - if (!Objects.equals(theme, getTheme(this) + getCustomTheme())) { - recreate(); - } - } - - @Override - protected void onApplyThemeResource(@NonNull Resources.Theme theme, int resid, boolean first) { - // apply real style and our custom style - if (getParent() == null) { - theme.applyStyle(resid, true); - } else { - try { - theme.setTo(getParent().getTheme()); - } catch (Exception e) { - // Empty - } - theme.applyStyle(resid, false); - } - theme.applyStyle(getCustomTheme(), true); - theme.applyStyle(getThemeStyleRes(this), true); - // only pass theme style to super, so styled theme will not be overwritten - super.onApplyThemeResource(theme, R.style.ThemeOverlay, first); - } - - @Override - public void onApplyTranslucentSystemBars() { - super.onApplyTranslucentSystemBars(); - Window window = getWindow(); - window.setStatusBarColor(Color.TRANSPARENT); - - window.getDecorView().post(() -> { - if (window.getDecorView().getRootWindowInsets().getSystemWindowInsetBottom() >= Resources.getSystem().getDisplayMetrics().density * 40) { - window.setNavigationBarColor(getThemedColor(android.R.attr.navigationBarColor) & 0x00ffffff | -0x20000000); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - window.setNavigationBarContrastEnforced(false); - } - } else { - window.setNavigationBarColor(Color.TRANSPARENT); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - window.setNavigationBarContrastEnforced(true); - } - } - }); - - } -} diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/LogsActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/LogsActivity.java index 177f9b30..01d6507f 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/LogsActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/LogsActivity.java @@ -61,6 +61,7 @@ import io.github.lsposed.manager.R; import io.github.lsposed.manager.databinding.ActivityLogsBinding; import io.github.lsposed.manager.databinding.DialogInstallWarningBinding; import io.github.lsposed.manager.databinding.ItemLogBinding; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.util.LinearLayoutManagerFix; import rikka.recyclerview.RecyclerViewKt; diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/MainActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/MainActivity.java index f2f9f000..bbe773a9 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/MainActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/MainActivity.java @@ -36,6 +36,7 @@ import java.util.Locale; import io.github.lsposed.manager.Constants; import io.github.lsposed.manager.R; import io.github.lsposed.manager.databinding.ActivityMainBinding; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.ui.fragment.StatusDialogBuilder; import io.github.lsposed.manager.util.GlideHelper; import io.github.lsposed.manager.util.ModuleUtil; diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/ModulesActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/ModulesActivity.java index 9c72a9c4..a67f94ed 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/ModulesActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/ModulesActivity.java @@ -64,6 +64,7 @@ import io.github.lsposed.manager.Constants; import io.github.lsposed.manager.R; import io.github.lsposed.manager.adapters.AppHelper; import io.github.lsposed.manager.databinding.ActivityListBinding; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.util.GlideApp; import io.github.lsposed.manager.util.LinearLayoutManagerFix; import io.github.lsposed.manager.util.ModuleUtil; diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java index e1b84d51..0478d6f2 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java @@ -49,6 +49,7 @@ import io.github.lsposed.manager.R; import io.github.lsposed.manager.databinding.ActivityListBinding; import io.github.lsposed.manager.repo.RepoLoader; import io.github.lsposed.manager.repo.model.OnlineModule; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.util.LinearLayoutManagerFix; import rikka.recyclerview.RecyclerViewKt; diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java index ac3b81ba..d39e4f70 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java @@ -56,6 +56,7 @@ import io.github.lsposed.manager.repo.model.Collaborator; import io.github.lsposed.manager.repo.model.OnlineModule; import io.github.lsposed.manager.repo.model.Release; import io.github.lsposed.manager.repo.model.ReleaseAsset; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.ui.widget.LinkifyTextView; import io.github.lsposed.manager.util.GlideApp; import io.github.lsposed.manager.util.LinearLayoutManagerFix; 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 3d7ee7b9..4dbaa7f2 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 @@ -56,9 +56,11 @@ import io.github.lsposed.manager.BuildConfig; import io.github.lsposed.manager.Constants; import io.github.lsposed.manager.R; import io.github.lsposed.manager.databinding.ActivitySettingsBinding; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.ui.fragment.StatusDialogBuilder; import io.github.lsposed.manager.ui.widget.IntegerListPreference; import io.github.lsposed.manager.util.BackupUtils; +import rikka.core.util.ResourceUtils; import rikka.material.app.DayNightDelegate; import rikka.recyclerview.RecyclerViewKt; import rikka.widget.borderview.BorderRecyclerView; @@ -299,7 +301,7 @@ public class SettingsActivity extends BaseActivity { if (black_dark_theme != null) { black_dark_theme.setOnPreferenceChangeListener((preference, newValue) -> { SettingsActivity activity = (SettingsActivity) getActivity(); - if (activity != null && isNightMode(getResources().getConfiguration())) { + if (activity != null && ResourceUtils.isNightMode(getResources().getConfiguration())) { activity.restart(); } return true; 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 new file mode 100644 index 00000000..323e160b --- /dev/null +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/base/BaseActivity.java @@ -0,0 +1,106 @@ +/* + * 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.activity.base; + +import android.content.SharedPreferences; +import android.content.res.Resources; +import android.graphics.Color; +import android.os.Build; +import android.os.Bundle; +import android.view.Window; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.appcompat.app.AlertDialog; + +import io.github.lsposed.manager.App; +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 rikka.core.res.ResourcesKt; +import rikka.material.app.MaterialActivity; + +public class BaseActivity extends MaterialActivity { + + protected static SharedPreferences preferences; + + static { + preferences = App.getPreferences(); + } + + @Override + public void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // make sure the versions are consistent + String coreVersionStr = Constants.getXposedVersion(); + if (coreVersionStr != null) { + Version managerVersion = new Version(BuildConfig.VERSION_NAME); + Version coreVersion = new Version(coreVersionStr); + if (!managerVersion.equals(coreVersion)) { + new AlertDialog.Builder(this) + .setMessage(R.string.outdated_manager) + .setPositiveButton(R.string.ok, (dialog, id) -> { + NavUtil.startURL(this, getString(R.string.about_source)); + finish(); + }) + .setCancelable(false) + .show(); + } + } + } + + @Override + public void onApplyUserThemeResource(@NonNull Resources.Theme theme, boolean isDecorView) { + theme.applyStyle(ThemeUtil.getNightThemeStyleRes(this), true); + theme.applyStyle(ThemeUtil.getColorThemeStyleRes(this), true); + } + + @Override + public String computeUserThemeKey() { + return ThemeUtil.getColorTheme(this) + ThemeUtil.getNightTheme(this); + } + + @Override + public void onApplyTranslucentSystemBars() { + super.onApplyTranslucentSystemBars(); + Window window = getWindow(); + window.setStatusBarColor(Color.TRANSPARENT); + + window.getDecorView().post(() -> { + if (window.getDecorView().getRootWindowInsets().getSystemWindowInsetBottom() >= Resources.getSystem().getDisplayMetrics().density * 40) { + window.setNavigationBarColor(ResourcesKt.resolveColor(getTheme(), android.R.attr.navigationBarColor) & 0x00ffffff | -0x20000000); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { + window.setNavigationBarContrastEnforced(false); + } + } else { + window.setNavigationBarColor(Color.TRANSPARENT); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { + window.setNavigationBarContrastEnforced(true); + } + } + }); + + } +} diff --git a/app/src/main/java/io/github/lsposed/manager/util/NavUtil.java b/app/src/main/java/io/github/lsposed/manager/util/NavUtil.java index 720d33a5..16b71943 100644 --- a/app/src/main/java/io/github/lsposed/manager/util/NavUtil.java +++ b/app/src/main/java/io/github/lsposed/manager/util/NavUtil.java @@ -25,8 +25,9 @@ import android.net.Uri; import androidx.browser.customtabs.CustomTabColorSchemeParams; import androidx.browser.customtabs.CustomTabsIntent; -import io.github.lsposed.manager.R; -import io.github.lsposed.manager.ui.activity.BaseActivity; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; +import rikka.core.res.ResourcesKt; +import rikka.core.util.ResourceUtils; public final class NavUtil { @@ -34,12 +35,12 @@ public final class NavUtil { CustomTabsIntent.Builder customTabsIntent = new CustomTabsIntent.Builder(); customTabsIntent.setShowTitle(true); CustomTabColorSchemeParams params = new CustomTabColorSchemeParams.Builder() - .setToolbarColor(activity.getThemedColor(R.attr.toolbarColor)) - .setNavigationBarColor(activity.getThemedColor(android.R.attr.navigationBarColor)) + .setToolbarColor(ResourcesKt.resolveColor(activity.getTheme(), android.R.attr.colorBackground)) + .setNavigationBarColor(ResourcesKt.resolveColor(activity.getTheme(), android.R.attr.navigationBarColor)) .setNavigationBarDividerColor(0) .build(); customTabsIntent.setDefaultColorSchemeParams(params); - boolean night = BaseActivity.isNightMode(activity.getResources().getConfiguration()); + boolean night = ResourceUtils.isNightMode(activity.getResources().getConfiguration()); customTabsIntent.setColorScheme(night ? CustomTabsIntent.COLOR_SCHEME_DARK : CustomTabsIntent.COLOR_SCHEME_LIGHT); customTabsIntent.build().launchUrl(activity, uri); } 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 new file mode 100644 index 00000000..6f19a466 --- /dev/null +++ b/app/src/main/java/io/github/lsposed/manager/util/ThemeUtil.java @@ -0,0 +1,499 @@ +/* + * 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/chrome/CustomTabsURLSpan.java b/app/src/main/java/io/github/lsposed/manager/util/chrome/CustomTabsURLSpan.java index 774b08e3..0c6cb68e 100644 --- a/app/src/main/java/io/github/lsposed/manager/util/chrome/CustomTabsURLSpan.java +++ b/app/src/main/java/io/github/lsposed/manager/util/chrome/CustomTabsURLSpan.java @@ -23,7 +23,7 @@ package io.github.lsposed.manager.util.chrome; import android.text.style.URLSpan; import android.view.View; -import io.github.lsposed.manager.ui.activity.BaseActivity; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; import io.github.lsposed.manager.util.NavUtil; public class CustomTabsURLSpan extends URLSpan { diff --git a/app/src/main/java/io/github/lsposed/manager/util/chrome/LinkTransformationMethod.java b/app/src/main/java/io/github/lsposed/manager/util/chrome/LinkTransformationMethod.java index ad2f6506..f80fddda 100644 --- a/app/src/main/java/io/github/lsposed/manager/util/chrome/LinkTransformationMethod.java +++ b/app/src/main/java/io/github/lsposed/manager/util/chrome/LinkTransformationMethod.java @@ -28,7 +28,7 @@ import android.text.style.URLSpan; import android.view.View; import android.widget.TextView; -import io.github.lsposed.manager.ui.activity.BaseActivity; +import io.github.lsposed.manager.ui.activity.base.BaseActivity; public class LinkTransformationMethod implements TransformationMethod {