Skip to content

Commit 435b6d9

Browse files
committed
Fix: Add back zed detection. Remove ghostty hard-code to dark theme
1 parent 0491093 commit 435b6d9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

cli/src/utils/theme-system.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ const extractZedTheme = (content: string): ThemeName | null => {
474474
}
475475

476476
const detectZedTheme = (): ThemeName | null => {
477+
if (!isZedTerminal()) {
478+
return null
479+
}
480+
477481
const settingsPaths = collectExistingPaths(resolveZedSettingsPaths())
478482
for (const settingsPath of settingsPaths) {
479483
const content = safeReadFile(settingsPath)
@@ -716,15 +720,6 @@ export const detectTerminalOverrides = (): ThemeName | null => {
716720
const termProgram = (process.env.TERM_PROGRAM ?? '').toLowerCase()
717721
const term = (process.env.TERM ?? '').toLowerCase()
718722

719-
// Ghostty renders our light theme text too dark; force dark for legibility
720-
if (
721-
termProgram.includes('ghostty') ||
722-
term.includes('ghostty') ||
723-
typeof process.env.GHOSTTY_RESOURCES_DIR === 'string'
724-
) {
725-
return 'dark'
726-
}
727-
728723
return null
729724
}
730725

0 commit comments

Comments
 (0)