|
|
@@ -52,7 +52,9 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
activePalette
|
|
|
]);
|
|
|
|
|
|
- const variantsPre: ThemeSwitchVariants = variantsProps;
|
|
|
+ const variantsPre: Array<Omit<ThemeSwitchVariants[0], "backgroundColor"> & {
|
|
|
+ backgroundColor?: ThemeSwitchVariants[0]["backgroundColor"]
|
|
|
+ }> = variantsProps;
|
|
|
|
|
|
const isHaveNC = variantsProps.findIndex(iV => iV.paletteKey === "nibgat-community") !== -1;
|
|
|
const isHaveCC = variantsProps.findIndex(iV => iV.paletteKey === "caycore") !== -1;
|
|
|
@@ -60,8 +62,8 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
|
|
|
if(!isHaveN) {
|
|
|
variantsPre.unshift({
|
|
|
+ backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
|
borderColor: "transparent",
|
|
|
- backgroundColor: "subtle",
|
|
|
paletteKey: "nibgat",
|
|
|
iconColor: "moon",
|
|
|
icon: ({
|
|
|
@@ -76,9 +78,9 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
|
|
|
if(!isHaveNC) {
|
|
|
variantsPre.unshift({
|
|
|
+ backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
|
paletteKey: "nibgat-community",
|
|
|
borderColor: "transparent",
|
|
|
- backgroundColor: "subtle",
|
|
|
iconColor: "moon",
|
|
|
icon: ({
|
|
|
size
|
|
|
@@ -92,8 +94,8 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
|
|
|
if(!isHaveCC) {
|
|
|
variantsPre.unshift({
|
|
|
+ backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
|
borderColor: "transparent",
|
|
|
- backgroundColor: "subtle",
|
|
|
paletteKey: "caycore",
|
|
|
iconColor: "moon",
|
|
|
icon: ({
|