From 811ee3ea7ef2295d33b2f2fb4fa559bcd0e60e21 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Tue, 17 Jun 2025 17:10:21 -0700 Subject: [PATCH] update colors to use css variables --- .../vscode/src/activation/NextEditWindowManager.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/extensions/vscode/src/activation/NextEditWindowManager.ts b/extensions/vscode/src/activation/NextEditWindowManager.ts index bf640a1d7..0db1ef199 100644 --- a/extensions/vscode/src/activation/NextEditWindowManager.ts +++ b/extensions/vscode/src/activation/NextEditWindowManager.ts @@ -9,8 +9,10 @@ import { getTheme } from "../util/getTheme"; // Fallback theme colors const FALLBACK_THEME = { colors: { - "editor.foreground": "#333333", - "editor.background": "#FFFFFF", + // "editor.foreground": "#FFFFFF", + // "editor.background": "#333333", + "editor.foreground": "var(--vscode-editor-foreground)", + "editor.background": "var(--vscode-editor-background)", }, }; @@ -93,8 +95,10 @@ export class NextEditWindowManager { private constructor() { console.log( - "Theme initialized:", - this.theme ? "Theme exists" : "Theme is undefined", + "Next Edit Theme initialized:", + this.theme + ? `Theme exists: ${JSON.stringify(this.theme)}` + : "Theme is undefined", ); this.setupListeners(); } @@ -280,7 +284,6 @@ export class NextEditWindowManager { '