more minor theme adjustments

This commit is contained in:
jeffvli
2025-12-14 19:33:03 -08:00
parent f5d6c4983c
commit 3c2af4bd1a
10 changed files with 27 additions and 6 deletions
@@ -129,7 +129,7 @@
} }
@mixin light { @mixin light {
background-color: var(--theme-colors-surface); background-color: darken(var(--theme-colors-surface), 5%);
} }
} }
@@ -25,6 +25,10 @@ const getThemeSwatchColors = (theme: AppTheme) => {
return { return {
background: themeConfig.colors?.background || 'rgb(0, 0, 0)', background: themeConfig.colors?.background || 'rgb(0, 0, 0)',
foreground: themeConfig.colors?.foreground || 'rgb(255, 255, 255)', foreground: themeConfig.colors?.foreground || 'rgb(255, 255, 255)',
primary:
themeConfig.colors?.primary ||
themeConfig.colors?.['state-info'] ||
'rgb(53, 116, 252)',
surface: themeConfig.colors?.surface || themeConfig.colors?.background || 'rgb(0, 0, 0)', surface: themeConfig.colors?.surface || themeConfig.colors?.background || 'rgb(0, 0, 0)',
}; };
}; };
@@ -74,6 +78,7 @@ const renderThemeOption = ({ option }: { option: { label: string; value: string
<ColorSwatch color={String(colors.background)} /> <ColorSwatch color={String(colors.background)} />
<ColorSwatch color={String(colors.surface)} /> <ColorSwatch color={String(colors.surface)} />
<ColorSwatch color={String(colors.foreground)} /> <ColorSwatch color={String(colors.foreground)} />
<ColorSwatch color={String(colors.primary)} />
</Group> </Group>
<span style={{ flex: 1 }}>{option.label}</span> <span style={{ flex: 1 }}>{option.label}</span>
</Group> </Group>
@@ -144,6 +149,7 @@ export const ThemeSettings = () => {
} }
}} }}
renderOption={renderThemeOption} renderOption={renderThemeOption}
width={240}
/> />
), ),
description: t('setting.theme', { description: t('setting.theme', {
@@ -167,6 +173,7 @@ export const ThemeSettings = () => {
}); });
}} }}
renderOption={renderThemeOption} renderOption={renderThemeOption}
width={240}
/> />
), ),
description: t('setting.themeDark', { description: t('setting.themeDark', {
@@ -190,6 +197,7 @@ export const ThemeSettings = () => {
}); });
}} }}
renderOption={renderThemeOption} renderOption={renderThemeOption}
width={240}
/> />
), ),
description: t('setting.themeLight', { description: t('setting.themeLight', {
@@ -1,7 +1,15 @@
.container { .container {
z-index: 200; z-index: 200;
grid-area: player; grid-area: player;
background: darken(var(--theme-colors-background), 10%);
@mixin light {
background: darken(var(--theme-colors-background), 5%);
}
@mixin dark {
background: darken(var(--theme-colors-background), 10%);
}
transition: background 0.5s; transition: background 0.5s;
} }
+1 -1
View File
@@ -15,7 +15,7 @@ export const ayuLight: AppThemeConfiguration = {
black: 'rgb(0, 0, 0)', black: 'rgb(0, 0, 0)',
foreground: 'rgb(57, 58, 52)', foreground: 'rgb(57, 58, 52)',
'foreground-muted': 'rgb(128, 128, 128)', 'foreground-muted': 'rgb(128, 128, 128)',
primary: 'rgb(55, 118, 171)', primary: 'rgb(86, 156, 214)',
'state-error': 'rgb(255, 51, 51)', 'state-error': 'rgb(255, 51, 51)',
'state-info': 'rgb(55, 118, 171)', 'state-info': 'rgb(55, 118, 171)',
'state-success': 'rgb(86, 171, 47)', 'state-success': 'rgb(86, 171, 47)',
@@ -2,5 +2,8 @@ import { AppThemeConfiguration } from '/@/shared/themes/app-theme-types';
export const defaultDark: AppThemeConfiguration = { export const defaultDark: AppThemeConfiguration = {
app: {}, app: {},
colors: {
primary: 'rgb(53, 116, 252)',
},
mode: 'dark', mode: 'dark',
}; };
@@ -16,6 +16,7 @@ export const defaultLight: AppThemeConfiguration = {
black: 'rgb(0, 0, 0)', black: 'rgb(0, 0, 0)',
foreground: 'rgb(25, 25, 25)', foreground: 'rgb(25, 25, 25)',
'foreground-muted': 'rgb(80, 80, 80)', 'foreground-muted': 'rgb(80, 80, 80)',
primary: 'rgb(0, 122, 255)',
'state-error': 'rgb(255, 59, 48)', 'state-error': 'rgb(255, 59, 48)',
'state-info': 'rgb(0, 122, 255)', 'state-info': 'rgb(0, 122, 255)',
'state-success': 'rgb(48, 209, 88)', 'state-success': 'rgb(48, 209, 88)',
+1
View File
@@ -24,6 +24,7 @@ export const defaultTheme: AppThemeConfiguration = {
black: 'rgb(0, 0, 0)', black: 'rgb(0, 0, 0)',
foreground: 'rgb(225, 225, 225)', foreground: 'rgb(225, 225, 225)',
'foreground-muted': 'rgb(150, 150, 150)', 'foreground-muted': 'rgb(150, 150, 150)',
primary: 'rgb(53, 116, 252)',
'state-error': 'rgb(204, 50, 50)', 'state-error': 'rgb(204, 50, 50)',
'state-info': 'rgb(53, 116, 252)', 'state-info': 'rgb(53, 116, 252)',
'state-success': 'rgb(50, 204, 50)', 'state-success': 'rgb(50, 204, 50)',
@@ -15,7 +15,7 @@ export const gruvboxDark: AppThemeConfiguration = {
black: 'rgb(0, 0, 0)', black: 'rgb(0, 0, 0)',
foreground: 'rgb(235, 219, 178)', foreground: 'rgb(235, 219, 178)',
'foreground-muted': 'rgb(189, 174, 147)', 'foreground-muted': 'rgb(189, 174, 147)',
primary: 'rgb(184, 187, 38)', primary: 'rgb(250, 189, 47)',
'state-error': 'rgb(251, 73, 52)', 'state-error': 'rgb(251, 73, 52)',
'state-info': 'rgb(131, 165, 152)', 'state-info': 'rgb(131, 165, 152)',
'state-success': 'rgb(184, 187, 38)', 'state-success': 'rgb(184, 187, 38)',
@@ -15,7 +15,7 @@ export const gruvboxLight: AppThemeConfiguration = {
black: 'rgb(0, 0, 0)', black: 'rgb(0, 0, 0)',
foreground: 'rgb(60, 56, 54)', foreground: 'rgb(60, 56, 54)',
'foreground-muted': 'rgb(124, 111, 100)', 'foreground-muted': 'rgb(124, 111, 100)',
primary: 'rgb(121, 116, 14)', primary: 'rgb(214, 93, 14)',
'state-error': 'rgb(204, 36, 29)', 'state-error': 'rgb(204, 36, 29)',
'state-info': 'rgb(7, 102, 120)', 'state-info': 'rgb(7, 102, 120)',
'state-success': 'rgb(121, 116, 14)', 'state-success': 'rgb(121, 116, 14)',
@@ -26,7 +26,7 @@ export const vscodeLightPlus: AppThemeConfiguration = {
}, },
mantineOverride: { mantineOverride: {
primaryShade: { primaryShade: {
light: 4, light: 9,
}, },
}, },
mode: 'light', mode: 'light',