mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
Changing color of stocks going up (#1065)
This commit is contained in:
parent
8c2a23f2ba
commit
e8311d4f05
@ -45,11 +45,11 @@ export function StockTickerHeaderText(props: IProps): React.ReactElement {
|
|||||||
// hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
|
// hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let color = "primary";
|
let color = Settings.theme.success;
|
||||||
if (stock.lastPrice === stock.price) {
|
if (stock.lastPrice === stock.price) {
|
||||||
color = "secondary";
|
color = Settings.theme.secondary;
|
||||||
} else if (stock.lastPrice > stock.price) {
|
} else if (stock.lastPrice > stock.price) {
|
||||||
color = "error";
|
color = Settings.theme.error;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user