Display monochrome icon in tray

Fix #471
This commit is contained in:
Carl Schwan
2021-12-25 15:29:27 +01:00
parent e79e06235f
commit 28137c8c86
6 changed files with 6 additions and 19 deletions

View File

@@ -7,7 +7,8 @@
TrayIcon::TrayIcon(QObject *parent)
: KStatusNotifierItem(parent)
{
setIconByName("org.kde.neochat");
setCategory(KStatusNotifierItem::ItemCategory::Communications);
setIconByName("org.kde.neochat.tray");
connect(this, &KStatusNotifierItem::activateRequested, this, [this] {
KWindowSystem::setCurrentXdgActivationToken(providedToken());
Q_EMIT showWindow();