Changed "assign" color to white
This commit is contained in:
parent
1709fe3079
commit
5c23976ec7
1 changed files with 4 additions and 4 deletions
|
@ -381,7 +381,7 @@ const resourceNodeType = {
|
||||||
selectedAction.value?.id;
|
selectedAction.value?.id;
|
||||||
return {
|
return {
|
||||||
text: currentFocus ? "10%" : "X",
|
text: currentFocus ? "10%" : "X",
|
||||||
color: currentFocus ? "green" : "black",
|
color: currentFocus ? "green" : "white",
|
||||||
pulsing: true
|
pulsing: true
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -398,7 +398,7 @@ const resourceNodeType = {
|
||||||
}
|
}
|
||||||
let color;
|
let color;
|
||||||
if (change.assign) {
|
if (change.assign) {
|
||||||
color = "black";
|
color = "white";
|
||||||
} else {
|
} else {
|
||||||
color = Decimal.gt(change.amount, 0) ? "green" : "red";
|
color = Decimal.gt(change.amount, 0) ? "green" : "red";
|
||||||
}
|
}
|
||||||
|
@ -542,14 +542,14 @@ const actionNodeType = {
|
||||||
(resources.focus.node.data as ResourceNodeData).currentFocus ===
|
(resources.focus.node.data as ResourceNodeData).currentFocus ===
|
||||||
selectedAction.value?.id
|
selectedAction.value?.id
|
||||||
? "green"
|
? "green"
|
||||||
: "black",
|
: "white",
|
||||||
"stroke-width": 4,
|
"stroke-width": 4,
|
||||||
pulsing: true
|
pulsing: true
|
||||||
},
|
},
|
||||||
...action.baseChanges.map(change => {
|
...action.baseChanges.map(change => {
|
||||||
let color;
|
let color;
|
||||||
if (change.assign) {
|
if (change.assign) {
|
||||||
color = "black";
|
color = "white";
|
||||||
} else {
|
} else {
|
||||||
color = Decimal.gt(change.amount, 0) ? "green" : "red";
|
color = Decimal.gt(change.amount, 0) ? "green" : "red";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue