修改暗夜模式适配
This commit is contained in:
1 parent
acb59a68ac
commit
8c0a488dce
4 files changed
+23
-7
No files matched your search
@@ -50,14 +50,21 @@
|
||||
|
||||
// 定义暗黑模式下的颜色方案
|
||||
var darkTheme = {
|
||||
backgroundColor: '#1A1718',
|
||||
fangkuaicolor:'#282325',
|
||||
gaoliangcolor: ['#b25f2f'],
|
||||
riqiColor: '#666',
|
||||
textbrcolor: '#332D2F',
|
||||
backgroundColor: '#FFFFFF',
|
||||
fangkuaicolor:'#F4F4F4',
|
||||
gaoliangcolor: ['#333'],
|
||||
riqiColor: '#999',
|
||||
textbrcolor: '#FFF',
|
||||
xiankuangcolor:'rgba(0, 0, 0, 0.0)',
|
||||
};
|
||||
|
||||
// 备份暗黑模式
|
||||
// backgroundColor: '#1A1718',
|
||||
// fangkuaicolor:'#282325',
|
||||
// gaoliangcolor: ['#b25f2f'],
|
||||
// riqiColor: '#666',
|
||||
// textbrcolor: '#332D2F',
|
||||
|
||||
// 根据浏览器主题模式选择当前主题
|
||||
var currentTheme = prefersDarkMode ? darkTheme : lightTheme;
|
||||
|
||||
|
||||
Reference in new issue
Block a user