feat(FN-1377): register 6 new themes in ThemeSelector and flash-prevention
This commit is contained in:
@@ -64,6 +64,12 @@ const COLOR_THEMES: { value: ColorTheme; label: string; className: string }[] =
|
||||
{ value: "copper", label: "Copper", className: "theme-swatch-copper" },
|
||||
{ value: "foundry", label: "Foundry", className: "theme-swatch-foundry" },
|
||||
{ value: "carbon", label: "Carbon", className: "theme-swatch-carbon" },
|
||||
{ value: "sandstone", label: "Sandstone", className: "theme-swatch-sandstone" },
|
||||
{ value: "lagoon", label: "Lagoon", className: "theme-swatch-lagoon" },
|
||||
{ value: "frost", label: "Frost", className: "theme-swatch-frost" },
|
||||
{ value: "lavender", label: "Lavender", className: "theme-swatch-lavender" },
|
||||
{ value: "neon-bloom", label: "Neon Bloom", className: "theme-swatch-neon-bloom" },
|
||||
{ value: "sepia", label: "Sepia", className: "theme-swatch-sepia" },
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
try {
|
||||
var mode = localStorage.getItem('kb-dashboard-theme-mode') || 'dark';
|
||||
var colorTheme = localStorage.getItem('kb-dashboard-color-theme') || 'default';
|
||||
var validThemes = ['default', 'ocean', 'forest', 'sunset', 'zen', 'berry', 'high-contrast', 'industrial', 'monochrome', 'slate', 'ash', 'graphite', 'silver', 'solarized', 'factory', 'ayu', 'one-dark', 'nord', 'dracula', 'gruvbox', 'tokyo-night', 'catppuccin-mocha', 'github-dark', 'everforest', 'rose-pine', 'kanagawa', 'night-owl', 'palenight', 'monokai-pro', 'slime', 'brutalist', 'neon-city', 'parchment', 'terminal', 'glass', 'horizon', 'vitesse', 'outrun', 'snazzy', 'porple', 'espresso', 'mars', 'poimandres', 'ember', 'rust', 'copper', 'foundry', 'carbon'];
|
||||
var validThemes = ['default', 'ocean', 'forest', 'sunset', 'zen', 'berry', 'high-contrast', 'industrial', 'monochrome', 'slate', 'ash', 'graphite', 'silver', 'solarized', 'factory', 'ayu', 'one-dark', 'nord', 'dracula', 'gruvbox', 'tokyo-night', 'catppuccin-mocha', 'github-dark', 'everforest', 'rose-pine', 'kanagawa', 'night-owl', 'palenight', 'monokai-pro', 'slime', 'brutalist', 'neon-city', 'parchment', 'terminal', 'glass', 'horizon', 'vitesse', 'outrun', 'snazzy', 'porple', 'espresso', 'mars', 'poimandres', 'ember', 'rust', 'copper', 'foundry', 'carbon', 'sandstone', 'lagoon', 'frost', 'lavender', 'neon-bloom', 'sepia'];
|
||||
if (!validThemes.includes(colorTheme)) {
|
||||
colorTheme = 'default';
|
||||
}
|
||||
|
||||
@@ -45,6 +45,12 @@
|
||||
"copper",
|
||||
"foundry",
|
||||
"carbon",
|
||||
"sandstone",
|
||||
"lagoon",
|
||||
"frost",
|
||||
"lavender",
|
||||
"neon-bloom",
|
||||
"sepia",
|
||||
];
|
||||
|
||||
if (!validThemes.includes(colorTheme)) {
|
||||
|
||||
Reference in New Issue
Block a user