mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
theme dark grey
This commit is contained in:
@@ -19,6 +19,12 @@ export const THEME_CONFIG = {
|
||||
isDark: true,
|
||||
useDarkClass: true,
|
||||
name: 'Dark'
|
||||
},
|
||||
darkgrey: {
|
||||
cssFiles: [appCss],
|
||||
isDark: true,
|
||||
useDarkClass: true,
|
||||
name: 'Dark Grey'
|
||||
}
|
||||
// darkold: {
|
||||
// cssFiles: [appLegacy, dark],
|
||||
|
||||
@@ -107,6 +107,8 @@ function changeAppThemeStyle(themeMode) {
|
||||
|
||||
applyThemeFonts(themeMode, themeConfig.fontLinks);
|
||||
|
||||
document.documentElement.setAttribute('data-theme', themeMode);
|
||||
|
||||
const shouldUseDarkClass =
|
||||
typeof themeConfig.useDarkClass === 'boolean'
|
||||
? themeConfig.useDarkClass
|
||||
|
||||
Reference in New Issue
Block a user