fixed modal background color

This commit is contained in:
Eugene Pankov 2023-04-10 19:20:38 +02:00
parent 7da2a15bf7
commit dfc7a2cb94
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 5 additions and 3 deletions

View File

@ -64,8 +64,9 @@ export class ThemesService {
const vars: Record<string, string> = {}
const contrastPairs: string[][] = []
vars['--body-bg'] = background.string()
if (this.findCurrentTheme().followsColorScheme) {
vars['--bs-body-bg'] = background.string()
vars['--bs-body-bg'] = theme.background
vars['--bs-body-color'] = theme.foreground
vars['--bs-black'] = theme.colors[0]
vars['--bs-red'] = theme.colors[1]

View File

@ -56,7 +56,7 @@ app-root {
&.active {
color: var(--theme-fg-less-2);
background: var(--bs-body-bg);
background: var(--body-bg);
}
}
}
@ -65,7 +65,7 @@ app-root {
}
tab-body {
background: var(--bs-body-bg);
background: var(--body-bg);
}
$tab-border-radius: 5px;
@ -80,6 +80,7 @@ $form-switch-width: 2.5em;
@import "./theme.vendor.scss";
body {
background: var(--body-bg);
--bs-border-color: var(--theme-bg-more-2);
--bs-form-control-bg: var(--theme-bg-more-2);
--bs-emphasis-color: var(--theme-fg-less-2);