Skip to content

Commit

Permalink
Merge pull request #94 from otsakir/LB-81_missing-icons-from-tray-and…
Browse files Browse the repository at this point in the history
…-window

Lb 81 missing icons from tray and window
  • Loading branch information
otsakir authored Sep 8, 2024
2 parents 3d40892 + 83adc11 commit 3a20d2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions App/custom-icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<file>custom-icons/settings.svg</file>
<file>custom-icons/to-external.svg</file>
<file>custom-icons/backup-icon.svg</file>
<file>custom-icons/backup-icon-tray.png</file>
</qresource>
</RCC>
Binary file added App/custom-icons/backup-icon-tray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion App/dialogs/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ MainWindow::MainWindow(bool startInTray,QString openingTaskName, AppContext* app

ui->setupUi(this);
setWindowTitle(Lb::windowTitle("woof!"));
setWindowIcon(QIcon(":/custom-icons/backup-icon.svg"));

taskLoader = appContext->getTaskLoader();
initButtonIcons();
trivialWiring();
Expand Down Expand Up @@ -582,7 +584,7 @@ void MainWindow::createTrayIcon()

trayIcon = new QSystemTrayIcon(this);
trayIcon->setContextMenu(trayIconMenu);
trayIcon->setIcon(QIcon(":/custom-icons/backup-icon.svg"));
trayIcon->setIcon(QIcon(":/custom-icons/backup-icon-tray.png"));
connect(trayIcon, &QSystemTrayIcon::activated, this, &QWidget::showNormal); // show main window when just clicking on the tray icon
}

Expand Down

0 comments on commit 3a20d2a

Please sign in to comment.