mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 18:23:54 +01:00
missed a change
This commit is contained in:
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user