Browse Source

thermostat: show temperature in red if heater is on

master
rico rico 4 years ago
parent
commit
21b3521326
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      soft/thermostat/src/zoneitem.cpp

+ 7
- 2
soft/thermostat/src/zoneitem.cpp View File

@ -47,10 +47,15 @@ void ZoneItem::refresh(void)
{
QString text;
if ((m_temperature_value == FORCE_OFF) || !m_available)
if ((m_temperature_value == FORCE_OFF) || !m_available) {
text += QString("-");
else
} else {
if (m_heating_on)
text.append(QString("<font color=red>"));
text += QString::number(m_temperature_value);
if (m_heating_on)
text.append(QString("</font>"));
}
text += QString("°C / ");
if (m_target_temperature == FORCE_OFF) {


Loading…
Cancel
Save