mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-16 23:54:19 +08:00
🐛 fix #289,#291,#290
This commit is contained in:
BIN
feature/src/assets/delete.png
Normal file
BIN
feature/src/assets/delete.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 845 B |
@@ -33,6 +33,12 @@ import localConfig from './confOp';
|
||||
|
||||
const config: any = localConfig.getConfig();
|
||||
|
||||
// 暗夜模式
|
||||
if (config.perf.common.darkMode) {
|
||||
document.body.classList.add('dark');
|
||||
window.rubick.theme = 'dark';
|
||||
}
|
||||
|
||||
ConfigProvider.config({
|
||||
theme: config.perf.custom || {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user