1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-07-29 21:54:37 +00:00

fixed modal background color

This commit is contained in:
Eugene Pankov
2023-04-10 19:20:38 +02:00
parent 7da2a15bf7
commit dfc7a2cb94
2 changed files with 5 additions and 3 deletions
tabby-core/src

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

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