Skip to content

Commit 082b202

Browse files
committed
Revert "changed night mode to dark theme"
This reverts commit 81113f2.
1 parent e3d55a8 commit 082b202

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/reduxTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export type ThemeName = 'light' | 'dark';
372372
* To determine the actual theme to show the user, use a ThemeName;
373373
* see there for details.
374374
*/
375-
export type ThemeSetting = 'default' | 'dark';
375+
export type ThemeSetting = 'default' | 'night';
376376

377377
/** What browser the user has set to use for opening links in messages.
378378
*

src/settings/SettingsScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export default function SettingsScreen(props: Props): Node {
3535
const { navigation } = props;
3636

3737
const handleThemeChange = useCallback(() => {
38-
dispatch(setGlobalSettings({ theme: theme === 'default' ? 'dark' : 'default' }));
38+
dispatch(setGlobalSettings({ theme: theme === 'default' ? 'night' : 'default' }));
3939
}, [theme, dispatch]);
4040

4141
return (
4242
<Screen title="Settings">
43-
<SwitchRow label="Dark theme" value={theme === 'dark'} onValueChange={handleThemeChange} />
43+
<SwitchRow label="Dark theme" value={theme === 'night'} onValueChange={handleThemeChange} />
4444
<SwitchRow
4545
label="Open links with in-app browser"
4646
value={shouldUseInAppBrowser(browser)}

src/settings/__tests__/settingsReducer-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ describe('settingsReducer', () => {
7979
test('changes value of a key', () => {
8080
const action = deepFreeze({
8181
type: SET_GLOBAL_SETTINGS,
82-
update: { theme: 'dark' },
82+
update: { theme: 'night' },
8383
});
8484

8585
const expectedState = {
8686
...baseState,
87-
theme: 'dark',
87+
theme: 'night',
8888
};
8989

9090
const actualState = settingsReducer(baseState, action);

0 commit comments

Comments
 (0)