From 3e96c4d0aa156424082dfba33baab59ec06e5508 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 21 Aug 2025 22:19:05 -0400 Subject: [PATCH] refactor: Include breeze fallback icons for connect and disconnect --- src/apps/res/deskflow.qrc | 12 ++++++++++ .../actions/16/network-connect.svg | 7 ++++++ .../actions/16/network-disconnect.svg | 8 +++++++ .../actions/22/network-connect.svg | 7 ++++++ .../actions/22/network-disconnect.svg | 8 +++++++ .../actions/24/network-connect.svg | 8 +++++++ .../actions/24/network-disconnect.svg | 9 ++++++++ .../actions/16/network-connect.svg | 13 +++++++++++ .../actions/16/network-disconnect.svg | 21 ++++++++++++++++++ .../actions/22/network-connect.svg | 14 ++++++++++++ .../actions/22/network-disconnect.svg | 22 +++++++++++++++++++ .../actions/24/network-connect.svg | 12 ++++++++++ .../actions/24/network-disconnect.svg | 16 ++++++++++++++ src/lib/gui/MainWindow.cpp | 4 ++-- 14 files changed, 159 insertions(+), 2 deletions(-) create mode 100644 src/apps/res/icons/deskflow-dark/actions/16/network-connect.svg create mode 100644 src/apps/res/icons/deskflow-dark/actions/16/network-disconnect.svg create mode 100644 src/apps/res/icons/deskflow-dark/actions/22/network-connect.svg create mode 100644 src/apps/res/icons/deskflow-dark/actions/22/network-disconnect.svg create mode 100644 src/apps/res/icons/deskflow-dark/actions/24/network-connect.svg create mode 100644 src/apps/res/icons/deskflow-dark/actions/24/network-disconnect.svg create mode 100644 src/apps/res/icons/deskflow-light/actions/16/network-connect.svg create mode 100644 src/apps/res/icons/deskflow-light/actions/16/network-disconnect.svg create mode 100644 src/apps/res/icons/deskflow-light/actions/22/network-connect.svg create mode 100644 src/apps/res/icons/deskflow-light/actions/22/network-disconnect.svg create mode 100644 src/apps/res/icons/deskflow-light/actions/24/network-connect.svg create mode 100644 src/apps/res/icons/deskflow-light/actions/24/network-disconnect.svg diff --git a/src/apps/res/deskflow.qrc b/src/apps/res/deskflow.qrc index e9d94e664..b013d52f1 100644 --- a/src/apps/res/deskflow.qrc +++ b/src/apps/res/deskflow.qrc @@ -6,6 +6,8 @@ icons/deskflow-dark/actions/16/document-open.svg icons/deskflow-dark/actions/16/document-save-as.svg icons/deskflow-dark/actions/16/help-about.svg + icons/deskflow-dark/actions/16/network-connect.svg + icons/deskflow-dark/actions/16/network-disconnect.svg icons/deskflow-dark/actions/16/process-stop.svg icons/deskflow-dark/actions/16/system-run.svg icons/deskflow-dark/actions/16/tools-report-bug.svg @@ -17,6 +19,8 @@ icons/deskflow-dark/actions/22/document-save-as.svg icons/deskflow-dark/actions/22/fingerprint.svg icons/deskflow-dark/actions/22/help-about.svg + icons/deskflow-dark/actions/22/network-connect.svg + icons/deskflow-dark/actions/22/network-disconnect.svg icons/deskflow-dark/actions/22/process-stop.svg icons/deskflow-dark/actions/22/system-run.svg icons/deskflow-dark/actions/22/tools-report-bug.svg @@ -29,6 +33,8 @@ icons/deskflow-dark/actions/24/edit-clear-all.svg icons/deskflow-dark/actions/24/fingerprint.svg icons/deskflow-dark/actions/24/help-about.svg + icons/deskflow-dark/actions/24/network-connect.svg + icons/deskflow-dark/actions/24/network-disconnect.svg icons/deskflow-dark/actions/24/process-stop.svg icons/deskflow-dark/actions/24/system-run.svg icons/deskflow-dark/actions/24/tools-report-bug.svg @@ -63,6 +69,8 @@ icons/deskflow-light/actions/16/document-open.svg icons/deskflow-light/actions/16/document-save-as.svg icons/deskflow-light/actions/16/help-about.svg + icons/deskflow-light/actions/16/network-connect.svg + icons/deskflow-light/actions/16/network-disconnect.svg icons/deskflow-light/actions/16/process-stop.svg icons/deskflow-light/actions/16/system-run.svg icons/deskflow-light/actions/16/tools-report-bug.svg @@ -74,6 +82,8 @@ icons/deskflow-light/actions/22/document-open.svg icons/deskflow-light/actions/22/document-save-as.svg icons/deskflow-light/actions/22/fingerprint.svg + icons/deskflow-light/actions/22/network-connect.svg + icons/deskflow-light/actions/22/network-disconnect.svg icons/deskflow-light/actions/22/help-about.svg icons/deskflow-light/actions/22/process-stop.svg icons/deskflow-light/actions/22/system-run.svg @@ -87,6 +97,8 @@ icons/deskflow-light/actions/24/document-open.svg icons/deskflow-light/actions/24/document-save-as.svg icons/deskflow-light/actions/24/help-about.svg + icons/deskflow-light/actions/24/network-connect.svg + icons/deskflow-light/actions/24/network-disconnect.svg icons/deskflow-light/actions/24/process-stop.svg icons/deskflow-light/actions/24/system-run.svg icons/deskflow-light/actions/24/tools-report-bug.svg diff --git a/src/apps/res/icons/deskflow-dark/actions/16/network-connect.svg b/src/apps/res/icons/deskflow-dark/actions/16/network-connect.svg new file mode 100644 index 000000000..9ce525425 --- /dev/null +++ b/src/apps/res/icons/deskflow-dark/actions/16/network-connect.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/apps/res/icons/deskflow-dark/actions/16/network-disconnect.svg b/src/apps/res/icons/deskflow-dark/actions/16/network-disconnect.svg new file mode 100644 index 000000000..2e3519b91 --- /dev/null +++ b/src/apps/res/icons/deskflow-dark/actions/16/network-disconnect.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/apps/res/icons/deskflow-dark/actions/22/network-connect.svg b/src/apps/res/icons/deskflow-dark/actions/22/network-connect.svg new file mode 100644 index 000000000..90480a904 --- /dev/null +++ b/src/apps/res/icons/deskflow-dark/actions/22/network-connect.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/apps/res/icons/deskflow-dark/actions/22/network-disconnect.svg b/src/apps/res/icons/deskflow-dark/actions/22/network-disconnect.svg new file mode 100644 index 000000000..c23ee257c --- /dev/null +++ b/src/apps/res/icons/deskflow-dark/actions/22/network-disconnect.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/apps/res/icons/deskflow-dark/actions/24/network-connect.svg b/src/apps/res/icons/deskflow-dark/actions/24/network-connect.svg new file mode 100644 index 000000000..d1a6fd98b --- /dev/null +++ b/src/apps/res/icons/deskflow-dark/actions/24/network-connect.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/apps/res/icons/deskflow-dark/actions/24/network-disconnect.svg b/src/apps/res/icons/deskflow-dark/actions/24/network-disconnect.svg new file mode 100644 index 000000000..9bdbe4043 --- /dev/null +++ b/src/apps/res/icons/deskflow-dark/actions/24/network-disconnect.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/apps/res/icons/deskflow-light/actions/16/network-connect.svg b/src/apps/res/icons/deskflow-light/actions/16/network-connect.svg new file mode 100644 index 000000000..73fdf9f4f --- /dev/null +++ b/src/apps/res/icons/deskflow-light/actions/16/network-connect.svg @@ -0,0 +1,13 @@ + + + + + + diff --git a/src/apps/res/icons/deskflow-light/actions/16/network-disconnect.svg b/src/apps/res/icons/deskflow-light/actions/16/network-disconnect.svg new file mode 100644 index 000000000..95caabc5f --- /dev/null +++ b/src/apps/res/icons/deskflow-light/actions/16/network-disconnect.svg @@ -0,0 +1,21 @@ + + + + + + + diff --git a/src/apps/res/icons/deskflow-light/actions/22/network-connect.svg b/src/apps/res/icons/deskflow-light/actions/22/network-connect.svg new file mode 100644 index 000000000..e7d2b626d --- /dev/null +++ b/src/apps/res/icons/deskflow-light/actions/22/network-connect.svg @@ -0,0 +1,14 @@ + + + + + + diff --git a/src/apps/res/icons/deskflow-light/actions/22/network-disconnect.svg b/src/apps/res/icons/deskflow-light/actions/22/network-disconnect.svg new file mode 100644 index 000000000..bb87f596d --- /dev/null +++ b/src/apps/res/icons/deskflow-light/actions/22/network-disconnect.svg @@ -0,0 +1,22 @@ + + + + + + + diff --git a/src/apps/res/icons/deskflow-light/actions/24/network-connect.svg b/src/apps/res/icons/deskflow-light/actions/24/network-connect.svg new file mode 100644 index 000000000..dcf15bbb5 --- /dev/null +++ b/src/apps/res/icons/deskflow-light/actions/24/network-connect.svg @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/src/apps/res/icons/deskflow-light/actions/24/network-disconnect.svg b/src/apps/res/icons/deskflow-light/actions/24/network-disconnect.svg new file mode 100644 index 000000000..b73d8bb40 --- /dev/null +++ b/src/apps/res/icons/deskflow-light/actions/24/network-disconnect.svg @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index 7406d139d..dcacf4018 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -609,8 +609,8 @@ void MainWindow::updateModeControlLabels() } else { startText = tr("Connect"); stopText = tr("Disconnect"); - startIcon = QIcon::fromTheme(QIcon::ThemeIcon::CallStart); - stopIcon = QIcon::fromTheme(QIcon::ThemeIcon::CallStop); + startIcon = QIcon::fromTheme(QStringLiteral("network-connect")); + stopIcon = QIcon::fromTheme(QStringLiteral("network-disconnect")); } m_actionStartCore->setText(startText);