Commit 5412ccb7 authored by Natalie Clarius's avatar Natalie Clarius
Browse files

plugins/nightcolor: show osd in preview

parent 9c56adf8
Pipeline #231085 failed with stage
in 20 minutes and 26 seconds
......@@ -482,6 +482,16 @@ void NightColorManager::preview(uint previewTemp)
m_previewTimer->setSingleShot(true);
connect(m_previewTimer, &QTimer::timeout, this, &NightColorManager::stopPreview);
m_previewTimer->start(15000);
QDBusMessage message = QDBusMessage::createMethodCall(
QStringLiteral("org.kde.plasmashell"),
QStringLiteral("/org/kde/osdService"),
QStringLiteral("org.kde.osdService"),
QStringLiteral("showText"));
message.setArguments(
{QStringLiteral("preferences-desktop-display-nightcolor-on"),
i18n("Color Temperature Preview")});
QDBusConnection::sessionBus().asyncCall(message);
}
void NightColorManager::stopPreview()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment