Skip to content

Commit 626931c

Browse files
authored
Make black theme the default (codesandbox#3607)
* remove duplicate black theme * set theme cache to black theme * set color theme to black if its not present
1 parent b17235a commit 626931c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/app/src/app/overmind/effects/vscode/initializers.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import codeSandboxBlackTheme from '@codesandbox/common/lib/themes/codesandbox-black';
21
import codeSandboxTheme from '@codesandbox/common/lib/themes/codesandbox.json';
32

43
export function initializeThemeCache() {
@@ -58,6 +57,13 @@ export function initializeSettings() {
5857
settings['javascript.autoClosingTags'] = false;
5958
settings['typescript.autoClosingTags'] = false;
6059
settings['typescript.tsserver.useSeparateSyntaxServer'] = false;
60+
61+
if (!settings['workbench.colorTheme']) {
62+
// if you have not changed the theme ever,
63+
// we set codesandbox black as the theme for you
64+
settings['workbench.colorTheme'] = 'CodeSandbox Black';
65+
}
66+
6167
fs.writeFileSync(
6268
'/vscode/settings.json',
6369
JSON.stringify(settings, null, 2)
@@ -143,10 +149,4 @@ export function initializeCustomTheme() {
143149
if (customTheme) {
144150
installCustomTheme('custom', 'Custom Theme', customTheme);
145151
}
146-
147-
installCustomTheme(
148-
'codesandbox-black-0.0.1',
149-
'CodeSandbox Black.',
150-
JSON.stringify(codeSandboxBlackTheme)
151-
);
152152
}

0 commit comments

Comments
 (0)