From 7dd8deb1ed59eedf721b0f591709162c29b11a60 Mon Sep 17 00:00:00 2001 From: phyzical Date: Wed, 16 Feb 2022 20:16:27 +0800 Subject: [PATCH] missed a change --- src/ScriptEditor/ui/ScriptEditorRoot.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index 4fb836c83..97edb5a1b 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -779,8 +779,7 @@ export function Root(props: IProps): React.ReactElement { {openScripts.map(({ fileName, hostname }, index) => { const editingCurrentScript = currentScript?.fileName === openScripts[index].fileName && currentScript?.hostname === openScripts[index].hostname - const externalScript = currentScript?.hostname !== 'home' - const scriptFilenameTextColor = externalScript + const externalScript = hostname !== 'home' const colorProps = editingCurrentScript ? { background: Settings.theme.button, borderColor: Settings.theme.button, @@ -790,6 +789,11 @@ export function Root(props: IProps): React.ReactElement { borderColor: Settings.theme.backgroundsecondary, color: Settings.theme.secondary } + + if (externalScript) { + colorProps.color = Settings.theme.error + } + const iconButtonStyle = { maxWidth: "25px", minWidth: "25px",