Changing color of stocks going up (#1065)

This commit is contained in:
Rinne 2024-02-10 08:28:18 -03:00 committed by GitHub
parent 8c2a23f2ba
commit e8311d4f05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,11 +45,11 @@ export function StockTickerHeaderText(props: IProps): React.ReactElement {
// hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
}
let color = "primary";
let color = Settings.theme.success;
if (stock.lastPrice === stock.price) {
color = "secondary";
color = Settings.theme.secondary;
} else if (stock.lastPrice > stock.price) {
color = "error";
color = Settings.theme.error;
}
return (