fix: correctly.

This commit is contained in:
Darshan committed 2025-11-05 18:39:20 +05:30
1 parent 663eea9215
commit cb3fd20ead
3 files changed
+16 -5

No files matched your search

+14 -3
View File
@@ -123,23 +123,27 @@
$: {
if (browser) {
const isCloudClass = isCloud ? 'is-cloud' : '';
const isStudioClass = PUBLIC_CONSOLE_PROFILE === 'studio' ? 'is-studio' : '';
if ($app.theme === 'auto') {
const darkThemeMq = window.matchMedia('(prefers-color-scheme: dark)');
if (darkThemeMq.matches) {
document.body.setAttribute('class', `theme-dark ${isCloudClass} no-transition`);
document.body.setAttribute(
'class',
`theme-dark ${isCloudClass} ${isStudioClass} no-transition`
);
$app.themeInUse = 'dark';
} else {
document.body.setAttribute(
'class',
`theme-light ${isCloudClass} no-transition`
`theme-light ${isCloudClass} ${isStudioClass} no-transition`
);
$app.themeInUse = 'light';
}
} else {
document.body.setAttribute(
'class',
`theme-${$app.theme} ${isCloudClass} no-transition`
`theme-${$app.theme} ${isCloudClass} ${isStudioClass} no-transition`
);
$app.themeInUse = $app.theme;
}
@@ -314,4 +318,11 @@
background-color: var(--color-mid-neutral-70, #56565c);
}
}
/* Studio profile: Override danger button text color to white */
.is-studio {
button.danger {
--button-color: var(--neutral-0);
}
}
</style>
+1 -1
View File
@@ -2,5 +2,5 @@
"bgcolor-accent": "var(--neutral-50)",
"bgcolor-accent-secondary": "var(--neutral-100)",
"bgcolor-accent-tertiary": "var(--neutral-150)",
"fgcolor-on-accent": "var(--neutral-0)"
"fgcolor-on-accent": "var(--neutral-950)"
}
+1 -1
View File
@@ -2,5 +2,5 @@
"bgcolor-accent": "var(--neutral-1000)",
"bgcolor-accent-secondary": "var(--neutral-900)",
"bgcolor-accent-tertiary": "var(--neutral-850)",
"fgcolor-on-accent": "var(--neutral-0)"
"fgcolor-on-accent": "var(--neutral-950)"
}