Refine NekoX Theme

This commit is contained in:
luvletter2333 2021-09-20 23:55:08 +08:00
parent d5188d73f9
commit cead4be034
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
1 changed files with 27 additions and 23 deletions

View File

@ -4750,13 +4750,12 @@ public class Theme {
ThemeInfo themeInfo = new ThemeInfo();
themeInfo.name = "Blue";
themeInfo.assetName = NekoConfig.useDefaultTheme ? "bluebubbles.attheme" : "indigo.attheme";
themeInfo.assetName = "bluebubbles.attheme";
themeInfo.previewBackgroundColor = -657931;
themeInfo.previewInColor = NekoConfig.useDefaultTheme ? 0xffffffff : Color.parseColor("#c0ffffff");
themeInfo.previewOutColor = NekoConfig.useDefaultTheme ? 0xffd0e6ff: Color.parseColor("#3f51b5");
themeInfo.previewInColor = 0xffffffff;
themeInfo.previewOutColor = 0xffd0e6ff;
themeInfo.currentAccentId = DEFALT_THEME_ACCENT_ID;
themeInfo.sortIndex = 1;
if (NekoConfig.useDefaultTheme) {
themeInfo.firstAccentIsDefault = true;
themeInfo.setAccentColorOptions(
new int[]{0xFF5890C5, 0xFF239853, 0xFFCE5E82, 0xFF7F63C3, 0xFF2491AD, 0xFF299C2F, 0xFF8854B4, 0xFF328ACF, 0xFF43ACC7, 0xFF52AC44, 0xFFCD5F93, 0xFFD28036, 0xFF8366CC, 0xFFCE4E57, 0xFFD3AE40, 0xFF7B88AB},
@ -4771,14 +4770,19 @@ public class Theme {
new int[]{0, 180, 45, 0, 45, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
new int[] { 0, 52, 46, 57, 45, 64, 52, 35, 36, 41, 50, 50, 35, 38, 37, 30 }
);
} else {
// NekoX: Fix change color in pm
themeInfo.setAccentColorOptions(new int[]{0xFF5890C5}, null, null, null, null, null, null
, new int[]{0}, null, null, null);
}
themes.add(currentDayTheme = currentTheme = defaultTheme = themeInfo);
themesDict.put("Blue", themeInfo);
themeInfo = new ThemeInfo();
themeInfo.name = "NekoX";
themeInfo.assetName = "indigo.attheme";
themeInfo.previewBackgroundColor = -657931;
themeInfo.previewInColor = Color.parseColor("#c0ffffff");
themeInfo.previewOutColor = Color.parseColor("#3f51b5");
themeInfo.sortIndex = 0;
themes.add(themeInfo);
themesDict.put("NekoX", themeInfo);
themeInfo = new ThemeInfo();
themeInfo.name = "Dark Blue";
themeInfo.assetName = "darkblue.attheme";