Skip to content

Commit 065d43e

Browse files
Make default theme to be the system one (#4434)
* making system theme as default * change default theme to system for desktop * Update by default theme to system Co-authored-by: Pavel Angelov <[email protected]> --------- Co-authored-by: Pavel Angelov <[email protected]>
1 parent 2707c17 commit 065d43e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

redisinsight/desktop/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"defaultPort": 5530,
44
"host": "localhost",
55
"debug": false,
6-
"themeSource": "dark",
6+
"themeSource": "system",
77
"appName": "Redis Insight",
88
"schema": "redisinsight",
99
"mainWindow": {

redisinsight/ui/src/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const defaultConfig = {
4343
unauthenticatedRedirect: process.env.RI_401_REDIRECT_URL ?? '',
4444
smConsoleRedirect: process.env.RI_SM_REDIRECT_URL ?? '',
4545
dbUpgradeRedirectBase: process.env.RI_DB_UPGRADE_REDIRECT_URL ?? '',
46-
defaultTheme: process.env.RI_DEFAULT_THEME ?? 'DARK',
46+
defaultTheme: process.env.RI_DEFAULT_THEME ?? 'SYSTEM',
4747
lazyLoad: booleanEnv('RI_ROUTES_LAZY_LOAD', false),
4848
routesExcludedByEnv: booleanEnv('RI_ROUTES_EXCLUDED_BY_ENV', false),
4949
returnUrlBase: process.env.RI_RETURN_URL_BASE,

redisinsight/ui/src/contexts/themeContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
const THEME_NAMES = THEMES.map(({ value }) => value)
1111

1212
export const defaultState = {
13-
theme: DEFAULT_THEME || THEME_NAMES[1], // env configured theme or dark theme by default
13+
theme: DEFAULT_THEME || Theme.System,
1414
usingSystemTheme: localStorageService.get(BrowserStorageItem.theme) === Theme.System,
1515
changeTheme: (themeValue: any) => {
1616
themeService.applyTheme(themeValue)

0 commit comments

Comments
 (0)