فهرست منبع

Bugfix: Switcher's highlightbutton problems fixed.

lfabl 2 هفته پیش
والد
کامیت
176542c286

+ 2 - 2
src/components/localeSwitcher/index.tsx

@@ -58,8 +58,8 @@ const LocaleSwitcher: FC<ILocaleSwitcherProps> = ({
 
     if(!isHaveNCTRTR) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             iconColor: "turkish",
             localeKey: "tr-TR",
             icon: ({
@@ -74,8 +74,8 @@ const LocaleSwitcher: FC<ILocaleSwitcherProps> = ({
 
     if(!isHaveNCENUS) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             iconColor: "english",
             localeKey: "en-US",
             icon: ({

+ 3 - 3
src/components/paletteSwitcher/index.tsx

@@ -60,8 +60,8 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
 
     if(!isHaveN) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             paletteKey: "nibgat",
             iconColor: "moon",
             icon: ({
@@ -76,9 +76,9 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
 
     if(!isHaveNC) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             paletteKey: "nibgat-community",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             iconColor: "moon",
             icon: ({
                 size
@@ -92,8 +92,8 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
 
     if(!isHaveCC) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             paletteKey: "caycore",
             iconColor: "moon",
             icon: ({

+ 2 - 2
src/components/themeSwitcher/index.tsx

@@ -59,8 +59,8 @@ const ThemeSwitcher: FC<IThemeSwitcherProps> = ({
 
     if(!isHaveDark) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             iconColor: "moon",
             themeKey: "dark",
             icon: ({
@@ -80,8 +80,8 @@ const ThemeSwitcher: FC<IThemeSwitcherProps> = ({
 
     if(!isHaveLight) {
         variantsPre.unshift({
+            backgroundColor: isWorkWithHighlightButton ? "transparent" : "subtle",
             borderColor: "transparent",
-            backgroundColor: "subtle",
             themeKey: "light",
             iconColor: "sun",
             icon: ({