UI: re-order sidebar temp wording (#22323)

pull/22328/head
Achilles308 2021-09-23 18:14:00 -04:00 committed by GitHub
parent c51eba3fd6
commit d888ef8f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -59,12 +59,12 @@ void Sidebar::updateState(const UIState &s) {
}
setProperty("connectStatus", QVariant::fromValue(connectStatus));
ItemStatus tempStatus = {"HIGH\nTEMP", danger_color};
ItemStatus tempStatus = {"TEMP\nHIGH", danger_color};
auto ts = deviceState.getThermalStatus();
if (ts == cereal::DeviceState::ThermalStatus::GREEN) {
tempStatus = {"GOOD\nTEMP", good_color};
tempStatus = {"TEMP\nGOOD", good_color};
} else if (ts == cereal::DeviceState::ThermalStatus::YELLOW) {
tempStatus = {"OK\nTEMP", warning_color};
tempStatus = {"TEMP\nOK", warning_color};
}
setProperty("tempStatus", QVariant::fromValue(tempStatus));