mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-05 16:45:52 +00:00
Allow tray customization
This commit is contained in:
@@ -125,7 +125,8 @@ void Controller::enableTrayIcon() {
|
||||
m_trayIcon = new QSystemTrayIcon();
|
||||
m_trayIcon->setToolTip("Flameshot");
|
||||
m_trayIcon->setContextMenu(trayIconMenu);
|
||||
m_trayIcon->setIcon(QIcon(":img/flameshot.png"));
|
||||
QIcon trayicon = QIcon::fromTheme("flameshot-tray", QIcon(":img/flameshot.png"));
|
||||
m_trayIcon->setIcon(trayicon);
|
||||
|
||||
auto trayIconActivated = [this](QSystemTrayIcon::ActivationReason r){
|
||||
if (r == QSystemTrayIcon::Trigger) {
|
||||
|
||||
Reference in New Issue
Block a user