File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,10 @@ const extractZedTheme = (content: string): ThemeName | null => {
474474}
475475
476476const 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
You can’t perform that action at this time.
0 commit comments