missed a change

This commit is contained in:
phyzical 2022-02-16 20:16:27 +08:00
parent 26002e0429
commit 7dd8deb1ed

@ -779,8 +779,7 @@ export function Root(props: IProps): React.ReactElement {
{openScripts.map(({ fileName, hostname }, index) => { {openScripts.map(({ fileName, hostname }, index) => {
const editingCurrentScript = currentScript?.fileName === openScripts[index].fileName && const editingCurrentScript = currentScript?.fileName === openScripts[index].fileName &&
currentScript?.hostname === openScripts[index].hostname currentScript?.hostname === openScripts[index].hostname
const externalScript = currentScript?.hostname !== 'home' const externalScript = hostname !== 'home'
const scriptFilenameTextColor = externalScript
const colorProps = editingCurrentScript ? { const colorProps = editingCurrentScript ? {
background: Settings.theme.button, background: Settings.theme.button,
borderColor: Settings.theme.button, borderColor: Settings.theme.button,
@ -790,6 +789,11 @@ export function Root(props: IProps): React.ReactElement {
borderColor: Settings.theme.backgroundsecondary, borderColor: Settings.theme.backgroundsecondary,
color: Settings.theme.secondary color: Settings.theme.secondary
} }
if (externalScript) {
colorProps.color = Settings.theme.error
}
const iconButtonStyle = { const iconButtonStyle = {
maxWidth: "25px", maxWidth: "25px",
minWidth: "25px", minWidth: "25px",