Skip to content

Commit

Permalink
Don't translate theme values
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Jan 24, 2025
1 parent dc178ea commit 90ac614
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/component/themeSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ThemeSelector from './view';
const select = (state) => ({
currentTheme: selectClientSetting(state, SETTINGS.THEME),
// Temporarily hardcoding themes here, otherwise user needs to log out and reload to get the changes in clientSettings. Can be removed after sometime, when most users have done that.
themes: [__('dark'), __('light'), __('system')], // selectClientSetting(state, SETTINGS.THEMES),
themes: ['dark', 'light', 'system'], // selectClientSetting(state, SETTINGS.THEMES),
automaticDarkModeEnabled: selectClientSetting(state, SETTINGS.AUTOMATIC_DARK_MODE_ENABLED),
darkModeTimes: selectClientSetting(state, SETTINGS.DARK_MODE_TIMES),
clock24h: selectClientSetting(state, SETTINGS.CLOCK_24H),
Expand Down
4 changes: 2 additions & 2 deletions ui/redux/reducers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const defaultState = {
// UI
[SETTINGS.LANGUAGE]: null,
[SETTINGS.SEARCH_IN_LANGUAGE]: false,
[SETTINGS.THEME]: __('system'),
[SETTINGS.THEMES]: [__('dark'), __('light'), __('system')],
[SETTINGS.THEME]: 'system',
[SETTINGS.THEMES]: ['dark', 'light', 'system'],
[SETTINGS.HOMEPAGE]: null,
[SETTINGS.HOMEPAGE_ORDER]: { active: null, hidden: null },
[SETTINGS.HOMEPAGE_ORDER_APPLY_TO_SIDEBAR]: false,
Expand Down

0 comments on commit 90ac614

Please sign in to comment.