plugins/nightcolor: Use Night Color icon for OSD

This makes the OSD message for Night Colour inhibition use the same icon as the tray applet.

I'm not sure where the original icon `preferences-desktop-display-nightcolor-off` is, but it would seem a good idea to remove it?
This commit is contained in:
Oliver Beard 2023-01-03 09:00:32 +00:00 committed by Vlad Zahorodnii
parent 699e060d37
commit 036a66f996

View file

@ -55,10 +55,9 @@ NightColorManager::NightColorManager()
// Display a message when Night Color is (un)inhibited. // Display a message when Night Color is (un)inhibited.
connect(this, &NightColorManager::inhibitedChanged, this, [this] { connect(this, &NightColorManager::inhibitedChanged, this, [this] {
// TODO: Maybe use different icons?
const QString iconName = isInhibited() const QString iconName = isInhibited()
? QStringLiteral("preferences-desktop-display-nightcolor-off") ? QStringLiteral("redshift-status-off")
: QStringLiteral("preferences-desktop-display-nightcolor-on"); : QStringLiteral("redshift-status-on");
const QString text = isInhibited() const QString text = isInhibited()
? i18nc("Night Color was disabled", "Night Color Off") ? i18nc("Night Color was disabled", "Night Color Off")