mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-02 01:30:51 +03:00
Fix darkClass in ThemeSwitcher
This commit is contained in:
parent
41e9290574
commit
5bd6baa055
@ -28,7 +28,7 @@
|
|||||||
isDarkTheme,
|
isDarkTheme,
|
||||||
bgStyle: `background: ${colors[theme].bg};`,
|
bgStyle: `background: ${colors[theme].bg};`,
|
||||||
textStyle: `color: ${colors[theme].text};`,
|
textStyle: `color: ${colors[theme].text};`,
|
||||||
darkClass: isDarkTheme ? 'ant-card-dark' : '',
|
darkClass: isDarkTheme ? 'ant-dark' : '',
|
||||||
darkCardClass: isDarkTheme ? 'ant-card-dark' : '',
|
darkCardClass: isDarkTheme ? 'ant-card-dark' : '',
|
||||||
darkDrawerClass: isDarkTheme ? 'ant-drawer-dark' : '',
|
darkDrawerClass: isDarkTheme ? 'ant-drawer-dark' : '',
|
||||||
get currentTheme() {
|
get currentTheme() {
|
||||||
@ -40,7 +40,7 @@
|
|||||||
localStorage.setItem('dark-mode', this.isDarkTheme);
|
localStorage.setItem('dark-mode', this.isDarkTheme);
|
||||||
this.bgStyle = `background: ${colors[this.theme].bg};`;
|
this.bgStyle = `background: ${colors[this.theme].bg};`;
|
||||||
this.textStyle = `color: ${colors[this.theme].text};`;
|
this.textStyle = `color: ${colors[this.theme].text};`;
|
||||||
this.darkClass = this.isDarkTheme ? 'ant-card-dark' : '';
|
this.darkClass = this.isDarkTheme ? 'ant-dark' : '';
|
||||||
this.darkCardClass = this.isDarkTheme ? 'ant-card-dark' : '';
|
this.darkCardClass = this.isDarkTheme ? 'ant-card-dark' : '';
|
||||||
this.darkDrawerClass = this.isDarkTheme ? 'ant-drawer-dark' : '';
|
this.darkDrawerClass = this.isDarkTheme ? 'ant-drawer-dark' : '';
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user