|
|
@@ -26,6 +26,12 @@ function App() { |
|
|
|
i18n.changeLanguage(lang); |
|
|
|
}, [lang]); |
|
|
|
|
|
|
|
const components = { |
|
|
|
Menu: { |
|
|
|
groupTitleFontSize: 12, |
|
|
|
itemMarginBlock: 2 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const curTheme: ThemeConfig = useMemo(() => { |
|
|
|
if (darkMode) { |
|
|
@@ -38,8 +44,9 @@ function App() { |
|
|
|
colorBgTextHover: 'rgba(124, 77, 255, 0.082)', |
|
|
|
colorTextHover: 'rgba(124, 77, 255, 0.082)', |
|
|
|
controlItemBgActive: 'rgba(33, 150, 243, 0.16)', |
|
|
|
colorBgElevated: 'rgb(33, 41, 70)' |
|
|
|
colorBgElevated: 'rgb(33, 41, 70)', |
|
|
|
}, |
|
|
|
components, |
|
|
|
algorithm: theme.darkAlgorithm, |
|
|
|
} |
|
|
|
} else { |
|
|
@@ -47,6 +54,7 @@ function App() { |
|
|
|
token: { |
|
|
|
colorPrimary: 'rgb(124, 77, 255)', |
|
|
|
}, |
|
|
|
components, |
|
|
|
} |
|
|
|
} |
|
|
|
}, [darkMode]); |
|
|
|