From 066e63cc864d3bd829d768135932fbff4212e742 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 29 Oct 2025 11:37:33 -0400 Subject: [PATCH] refactor: make sure flatpak and snap use packed icons, they can not detect panel color --- src/lib/gui/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index a86833d81..dae475cb2 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -755,6 +755,10 @@ void MainWindow::setTrayIcon() { QString iconString = kRevFqdnName; + if (deskflow::platform::isSandboxed()) { + iconString = QStringLiteral(":/icons/%1-%2/apps/64/%3").arg(kAppId, iconMode(), kRevFqdnName); + } + if (!Settings::value(Settings::Gui::SymbolicTrayIcon).toBool()) { m_trayIcon->setIcon(QIcon::fromTheme(iconString)); return;