Skip to content

Commit 7545328

Browse files
committed
Fix duplicate backgroundColor after rebase and format EditorPanel
1 parent a6739a5 commit 7545328

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

apps/desktop/src/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ function syncAllDesktopWindowBackgrounds(): void {
394394
}
395395
}
396396

397-
398397
function writeDesktopStreamChunk(
399398
streamName: "stdout" | "stderr",
400399
chunk: unknown,
@@ -1668,10 +1667,6 @@ function getIconOption(): { icon: string } | Record<string, never> {
16681667
return iconPath ? { icon: iconPath } : {};
16691668
}
16701669

1671-
function getInitialWindowBackgroundColor(): string {
1672-
return nativeTheme.shouldUseDarkColors ? "#0a0a0a" : "#ffffff";
1673-
}
1674-
16751670
function createWindow(): BrowserWindow {
16761671
const window = new BrowserWindow({
16771672
width: 1100,
@@ -1680,7 +1675,6 @@ function createWindow(): BrowserWindow {
16801675
minHeight: 620,
16811676
show: isDevelopment,
16821677
autoHideMenuBar: true,
1683-
backgroundColor: getInitialWindowBackgroundColor(),
16841678
...getIconOption(),
16851679
backgroundColor: getDesktopWindowBackgroundColor(),
16861680
title: APP_DISPLAY_NAME,

apps/web/src/components/EditorPanel.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ const EditorPanel = memo(function EditorPanel({
9090
</div>
9191
}
9292
>
93-
<MonacoEditor
94-
environmentId={environmentId}
95-
cwd={cwd}
96-
relativePath={activeFilePath}
97-
/>
93+
<MonacoEditor environmentId={environmentId} cwd={cwd} relativePath={activeFilePath} />
9894
</Suspense>
9995
</div>
10096
</div>

0 commit comments

Comments
 (0)