From 55ff08db2329f0cb3e5df23d76ed90e1e6a62468 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 1 Jun 2020 22:59:10 +0200 Subject: [PATCH] Different icon init --- app/SysTray-X/systrayxicon.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/SysTray-X/systrayxicon.cpp b/app/SysTray-X/systrayxicon.cpp index 47db6f8..b52fd6f 100644 --- a/app/SysTray-X/systrayxicon.cpp +++ b/app/SysTray-X/systrayxicon.cpp @@ -20,8 +20,17 @@ * Constructor */ SysTrayXIcon::SysTrayXIcon( SysTrayXLink* link, Preferences* pref, QObject* parent ) - : QSystemTrayIcon( QIcon( ":/files/icons/Thunderbird.png" ), parent ) + : QSystemTrayIcon( parent ) { + /* + * Set the tray icon + */ + QPixmap lookthrough( 256, 256 ); + lookthrough.fill( Qt::transparent ); + + // QSystemTrayIcon::setIcon( QIcon( ":/files/icons/Thunderbird.png" ) ); + QSystemTrayIcon::setIcon( QIcon( lookthrough ) ); + /* * Initialize */