TagSpaces is an offline, open source, document manager with tagging support
chore: added better preview for the themes
Ilian Sapundshiev9157caf03bd1
diff --git a/src/renderer/components/dialogs/components/SettingsGeneral.tsx b/src/renderer/components/dialogs/components/SettingsGeneral.tsxindex 184270ee7..1d53bc6c8 100644--- a/src/renderer/components/dialogs/components/SettingsGeneral.tsx+++ b/src/renderer/components/dialogs/components/SettingsGeneral.tsx@@ -258,6 +258,18 @@ function SettingsGeneral() {<MenuItem key={themeKey} value={themeKey}><div style={{ display: 'flex' }}><ListItemIcon>+ <Box+ component="div"+ sx={{+ // @ts-ignore+ backgroundColor: themeValue.background.default,+ width: '30px',+ height: '30px',+ borderTopLeftRadius: AppConfig.defaultCSSRadius,+ borderBottomLeftRadius:+ AppConfig.defaultCSSRadius,+ }}+ ></Box><Boxcomponent="div"sx={{@@ -265,7 +277,9 @@ function SettingsGeneral() {backgroundColor: themeValue.primary.main,width: '30px',height: '30px',- borderRadius: AppConfig.defaultCSSRadius,+ borderTopRightRadius: AppConfig.defaultCSSRadius,+ borderBottomRightRadius:+ AppConfig.defaultCSSRadius,marginRight: '10px',}}></Box>@@ -303,6 +317,18 @@ function SettingsGeneral() {<MenuItem key={themeKey} value={themeKey}><div style={{ display: 'flex' }}><ListItemIcon>+ <Box+ component="div"+ sx={{+ // @ts-ignore+ backgroundColor: themeValue.background.default,+ width: '30px',+ height: '30px',+ borderTopLeftRadius: AppConfig.defaultCSSRadius,+ borderBottomLeftRadius:+ AppConfig.defaultCSSRadius,+ }}+ ></Box><Boxcomponent="div"sx={{@@ -310,7 +336,9 @@ function SettingsGeneral() {backgroundColor: themeValue.primary.main,width: '30px',height: '30px',- borderRadius: AppConfig.defaultCSSRadius,+ borderTopRightRadius: AppConfig.defaultCSSRadius,+ borderBottomRightRadius:+ AppConfig.defaultCSSRadius,marginRight: '10px',}}></Box>diff --git a/src/renderer/utils/Themes.ts b/src/renderer/utils/Themes.tsindex 9d61b6a3b..56e3385b3 100644--- a/src/renderer/utils/Themes.ts+++ b/src/renderer/utils/Themes.ts@@ -142,17 +142,6 @@ lightThemes['legacy'] = {background: { default: '#fff' },divider: '#ddd',};-lightThemes['lemonblue'] = {- mode: 'light',- primary: {- light: '#486989ff',- main: '#486989ff',- dark: '#486989ff',- },- secondary: { main: '#777' },- background: { default: '#f6f1dfff' },- divider: '#fff',-};lightThemes['newlight'] = {mode: 'light',primary: {@@ -173,7 +162,7 @@ lightThemes['orange'] = {},secondary: { main: '#777' },background: { default: '#f4f4f4ff' },- divider: '#fff',+ divider: '#ddd',};lightThemes['herbal'] = {mode: 'light',@@ -184,5 +173,27 @@ lightThemes['herbal'] = {},secondary: { main: '#777' },background: { default: '#f4f4f4ff' },- divider: '#fff',+ divider: '#ddd',+};+lightThemes['lemonblue'] = {+ mode: 'light',+ primary: {+ light: '#486989ff',+ main: '#486989ff',+ dark: '#486989ff',+ },+ secondary: { main: '#777' },+ background: { default: '#f6f1dfff' },+ divider: '#ddd',+};+lightThemes['vanilablue'] = {+ mode: 'light',+ primary: {+ light: '#4c9db0',+ main: '#4c9db0',+ dark: '#4c9db0',+ },+ secondary: { main: '#777' },+ background: { default: '#ffebaf' },+ divider: '#ddd',};