Skip to content

Commit 3c665a1

Browse files
committed
feat: wire up theme setting to CodeEditor component
1 parent e9fd94c commit 3c665a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/MainContent/MainContent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ const DEFAULT_CDN_SETTINGS: CdnSettings = {
119119
const DEFAULT_EDITOR_SETTINGS: EditorSettings = {
120120
showMinimap: true,
121121
wordWrap: true,
122+
theme: "vs-dark",
122123
};
123124

124125
// Expose methods to parent via ref
@@ -402,8 +403,8 @@ const MainContent = forwardRef<MainContentRef, MainContentProps>(({ isZenMode =
402403
{/* Editor Panel */}
403404
<div
404405
className={`flex flex-col min-h-0 transition-all duration-300 ease-out ${isPreviewVisible
405-
? 'border-r border-slate-700'
406-
: 'mx-auto border-x border-slate-700 rounded-lg overflow-hidden'
406+
? 'border-r border-slate-700'
407+
: 'mx-auto border-x border-slate-700 rounded-lg overflow-hidden'
407408
}`}
408409
style={{
409410
width: isPreviewVisible ? `${editorWidth}%` : '100%',
@@ -426,6 +427,7 @@ const MainContent = forwardRef<MainContentRef, MainContentProps>(({ isZenMode =
426427
onChange={handleCodeChange}
427428
showMinimap={editorSettings.showMinimap}
428429
wordWrap={editorSettings.wordWrap}
430+
theme={editorSettings.theme}
429431
onSave={handleRefresh}
430432
/>
431433
</div>

0 commit comments

Comments
 (0)