plugins/nightcolor: osd: show day icon if appropriate

This commit is contained in:
Natalie Clarius 2023-11-16 17:45:36 +01:00 committed by Nate Graham
parent 96e979c736
commit 8e6b1a363f

View file

@ -57,7 +57,8 @@ NightColorManager::NightColorManager()
connect(this, &NightColorManager::inhibitedChanged, this, [this] { connect(this, &NightColorManager::inhibitedChanged, this, [this] {
const QString iconName = isInhibited() const QString iconName = isInhibited()
? QStringLiteral("redshift-status-off") ? QStringLiteral("redshift-status-off")
: QStringLiteral("redshift-status-on"); : m_daylight && m_targetTemperature != DEFAULT_DAY_TEMPERATURE ? QStringLiteral("redshift-status-day")
: QStringLiteral("redshift-status-on");
const QString text = isInhibited() const QString text = isInhibited()
? i18nc("Night Light was disabled", "Night Light Off") ? i18nc("Night Light was disabled", "Night Light Off")