mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
theme dark grey
This commit is contained in:
+16
-2
@@ -384,6 +384,20 @@ html.dark,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root[data-theme='darkgrey'] {
|
||||||
|
--el-bg-color: var(--color-neutral-900);
|
||||||
|
--el-bg-color-page: var(--color-neutral-900);
|
||||||
|
--el-bg-color-overlay: var(--color-neutral-800);
|
||||||
|
|
||||||
|
.el-dialog {
|
||||||
|
background-color: var(--el-bg-color-overlay) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-message-box {
|
||||||
|
background-color: var(--el-bg-color-overlay) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
html.dark body,
|
html.dark body,
|
||||||
:root.dark body,
|
:root.dark body,
|
||||||
:root[data-theme='dark'] body {
|
:root[data-theme='dark'] body {
|
||||||
@@ -400,8 +414,8 @@ html.dark body,
|
|||||||
),
|
),
|
||||||
linear-gradient(
|
linear-gradient(
|
||||||
180deg,
|
180deg,
|
||||||
color-mix(in oklch, var(--color-neutral-950) 92%, transparent),
|
color-mix(in oklch, var(--el-bg-color-page) 92%, transparent),
|
||||||
var(--color-neutral-950)
|
var(--el-bg-color-page)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -551,6 +551,7 @@
|
|||||||
"theme_mode_system": "System",
|
"theme_mode_system": "System",
|
||||||
"theme_mode_light": "Light",
|
"theme_mode_light": "Light",
|
||||||
"theme_mode_dark": "Dark",
|
"theme_mode_dark": "Dark",
|
||||||
|
"theme_mode_darkgrey": "Dark Grey",
|
||||||
"theme_mode_blue": "Blue",
|
"theme_mode_blue": "Blue",
|
||||||
"theme_mode_darkblue": "Dark Blue",
|
"theme_mode_darkblue": "Dark Blue",
|
||||||
"theme_mode_amoled": "Amoled",
|
"theme_mode_amoled": "Amoled",
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ export const THEME_CONFIG = {
|
|||||||
isDark: true,
|
isDark: true,
|
||||||
useDarkClass: true,
|
useDarkClass: true,
|
||||||
name: 'Dark'
|
name: 'Dark'
|
||||||
|
},
|
||||||
|
darkgrey: {
|
||||||
|
cssFiles: [appCss],
|
||||||
|
isDark: true,
|
||||||
|
useDarkClass: true,
|
||||||
|
name: 'Dark Grey'
|
||||||
}
|
}
|
||||||
// darkold: {
|
// darkold: {
|
||||||
// cssFiles: [appLegacy, dark],
|
// cssFiles: [appLegacy, dark],
|
||||||
|
|||||||
@@ -107,6 +107,8 @@ function changeAppThemeStyle(themeMode) {
|
|||||||
|
|
||||||
applyThemeFonts(themeMode, themeConfig.fontLinks);
|
applyThemeFonts(themeMode, themeConfig.fontLinks);
|
||||||
|
|
||||||
|
document.documentElement.setAttribute('data-theme', themeMode);
|
||||||
|
|
||||||
const shouldUseDarkClass =
|
const shouldUseDarkClass =
|
||||||
typeof themeConfig.useDarkClass === 'boolean'
|
typeof themeConfig.useDarkClass === 'boolean'
|
||||||
? themeConfig.useDarkClass
|
? themeConfig.useDarkClass
|
||||||
|
|||||||
@@ -126,6 +126,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-slot='table-header'],
|
||||||
|
[data-slot='table-header'] [data-slot='table-row'],
|
||||||
|
[data-slot='table-head'] {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.lucide {
|
.lucide {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|||||||
@@ -195,7 +195,6 @@
|
|||||||
min-height: calc(40px * var(--card-scale));
|
min-height: calc(40px * var(--card-scale));
|
||||||
padding: calc(6px * var(--card-scale)) calc(10px * var(--card-scale));
|
padding: calc(6px * var(--card-scale)) calc(10px * var(--card-scale));
|
||||||
border-radius: calc(10px * var(--card-scale));
|
border-radius: calc(10px * var(--card-scale));
|
||||||
background: var(--el-fill-color);
|
|
||||||
color: var(--el-text-color-regular);
|
color: var(--el-text-color-regular);
|
||||||
font-size: calc(12px * var(--card-scale));
|
font-size: calc(12px * var(--card-scale));
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
|
|||||||
Reference in New Issue
Block a user