refactor: MainWindow, Icon for the clear settings action

This commit is contained in:
sithlord48
2025-01-18 23:23:15 -05:00
committed by Nick Bolton
parent c583ab7d2c
commit f578da16c0
8 changed files with 67 additions and 0 deletions

View File

@ -115,6 +115,8 @@ MainWindow::MainWindow(ConfigScopes &configScopes, AppConfig &appConfig)
m_actionQuit->setIcon(QIcon(QIcon::fromTheme("application-exit")));
m_actionTrayQuit->setIcon(QIcon(QIcon::fromTheme("application-exit")));
m_actionClearSettings->setIcon(QIcon::fromTheme(QStringLiteral("edit-clear-all")));
m_actionSettings->setMenuRole(QAction::PreferencesRole);
m_actionSettings->setIcon(QIcon::fromTheme(QStringLiteral("configure")));

View File

@ -16,6 +16,7 @@
<file>icons/deskflow-dark/actions/24/edit-copy.svg</file>
<file>icons/deskflow-dark/actions/24/document-open.svg</file>
<file>icons/deskflow-dark/actions/24/document-save-as.svg</file>
<file>icons/deskflow-dark/actions/24/edit-clear-all.svg</file>
<file>icons/deskflow-dark/actions/24/tools-report-bug.svg</file>
<file>icons/deskflow-dark/actions/24/view-refresh.svg</file>
<file>icons/deskflow-dark/actions/32/configure.svg</file>
@ -49,18 +50,21 @@
<file>icons/deskflow-dark/status/64/security-medium.svg</file>
<file>icons/deskflow-dark/index.theme</file>
<file>icons/deskflow-light/actions/16/configure.svg</file>
<file>icons/deskflow-light/actions/16/edit-clear-all.svg</file>
<file>icons/deskflow-light/actions/16/edit-copy.svg</file>
<file>icons/deskflow-light/actions/16/document-open.svg</file>
<file>icons/deskflow-light/actions/16/document-save-as.svg</file>
<file>icons/deskflow-light/actions/16/tools-report-bug.svg</file>
<file>icons/deskflow-light/actions/16/view-refresh.svg</file>
<file>icons/deskflow-light/actions/22/configure.svg</file>
<file>icons/deskflow-light/actions/22/edit-clear-all.svg</file>
<file>icons/deskflow-light/actions/22/edit-copy.svg</file>
<file>icons/deskflow-light/actions/22/document-open.svg</file>
<file>icons/deskflow-light/actions/22/document-save-as.svg</file>
<file>icons/deskflow-light/actions/22/tools-report-bug.svg</file>
<file>icons/deskflow-light/actions/22/view-refresh.svg</file>
<file>icons/deskflow-light/actions/24/configure.svg</file>
<file>icons/deskflow-light/actions/24/edit-clear-all.svg</file>
<file>icons/deskflow-light/actions/24/edit-copy.svg</file>
<file>icons/deskflow-light/actions/24/document-open.svg</file>
<file>icons/deskflow-light/actions/24/document-save-as.svg</file>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 2.5 2 C 2.2238576 2 2 2.2238576 2 2.5 C 2 2.7761424 2.2238576 3 2.5 3 C 2.7761424 3 3 2.7761424 3 2.5 C 3 2.2238576 2.7761424 2 2.5 2 z M 5.5 2 C 5.2238576 2 5 2.2238576 5 2.5 C 5 2.7761424 5.2238576 3 5.5 3 C 5.7761424 3 6 2.7761424 6 2.5 C 6 2.2238576 5.7761424 2 5.5 2 z M 13.160156 2 L 9.7382812 6.3105469 C 9.062765 6.0537156 8.2111082 5.9824498 7 6 C 5.6442244 7.2930815 4.7507597 7.7091991 2 8 L 2 9 C 4.1137135 12.371692 5.4745763 14 9 14 L 10 14 C 11.073961 12.616195 11.627119 11.610169 12 10 L 12 9 C 11.558507 8.0093924 11.158004 7.334604 10.673828 6.8789062 L 14 2.6601562 L 13.160156 2 z M 4 4 C 3.4477153 4 3 4.4477153 3 5 C 3 5.5522847 3.4477153 6 4 6 C 4.5522847 6 5 5.5522847 5 5 C 5 4.4477153 4.5522847 4 4 4 z M 7.5292969 7.1015625 C 9.6322903 7.2655765 10.168585 8.0162663 10.857422 9.6992188 C 10.284594 11.24586 10.385403 11.602833 9.2734375 12.96875 C 6.1355922 12.694915 5.052768 11.540538 3.3261719 8.8300781 C 5.122354 8.7567482 6.1084274 8.1046285 7.5292969 7.1015625 z " class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 17.564453 2.7558594 L 14.298828 8.5742188 L 11.882812 7.1386719 L 10.861328 8.8574219 L 16.511719 12.216797 L 17.533203 10.496094 L 15.158203 9.0839844 L 18.435547 3.2441406 L 17.564453 2.7558594 z M 7 6 A 1 1 0 0 0 6 7 A 1 1 0 0 0 7 8 A 1 1 0 0 0 8 7 A 1 1 0 0 0 7 6 z M 3.5 7 A 0.5 0.5 0 0 0 3 7.5 A 0.5 0.5 0 0 0 3.5 8 A 0.5 0.5 0 0 0 4 7.5 A 0.5 0.5 0 0 0 3.5 7 z M 5 9 A 1 1 0 0 0 4 10 A 1 1 0 0 0 5 11 A 1 1 0 0 0 6 10 A 1 1 0 0 0 5 9 z M 10 10 C 8.8815125 11.564268 6.8355055 12.810894 3 13 L 3 14 C 5.1137135 17.371692 8 19 12 19 L 13 19 C 14.311249 17.412805 15.357513 15.967619 16 14 L 16 13 L 11 10 L 10 10 z M 10.529297 11.101562 L 14.857422 13.699219 C 14.284594 15.24586 13.385404 16.602833 12.273438 17.96875 C 8.9999995 18 6.052768 16.540538 4.3261719 13.830078 C 7.4443879 13.51946 9.3457156 12.545306 10.529297 11.101562 z " class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">.ColorScheme-Text { color: #fcfcfc; } </style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 17.564453 2.7558594 L 14.298828 8.5742188 L 11.882812 7.1386719 L 10.861328 8.8574219 L 16.511719 12.216797 L 17.533203 10.496094 L 15.158203 9.0839844 L 18.435547 3.2441406 L 17.564453 2.7558594 z M 7 6 A 1 1 0 0 0 6 7 A 1 1 0 0 0 7 8 A 1 1 0 0 0 8 7 A 1 1 0 0 0 7 6 z M 3.5 7 A 0.5 0.5 0 0 0 3 7.5 A 0.5 0.5 0 0 0 3.5 8 A 0.5 0.5 0 0 0 4 7.5 A 0.5 0.5 0 0 0 3.5 7 z M 5 9 A 1 1 0 0 0 4 10 A 1 1 0 0 0 5 11 A 1 1 0 0 0 6 10 A 1 1 0 0 0 5 9 z M 10 10 C 8.8815125 11.564268 6.8355055 12.810894 3 13 L 3 14 C 5.1137135 17.371692 8 19 12 19 L 13 19 C 14.311249 17.412805 15.357513 15.967619 16 14 L 16 13 L 11 10 L 10 10 z M 10.529297 11.101562 L 14.857422 13.699219 C 14.284594 15.24586 13.385404 16.602833 12.273438 17.96875 C 8.9999995 18 6.052768 16.540538 4.3261719 13.830078 C 7.4443879 13.51946 9.3457156 12.545306 10.529297 11.101562 z " class="ColorScheme-Text"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 2.5 2 C 2.2238576 2 2 2.2238576 2 2.5 C 2 2.7761424 2.2238576 3 2.5 3 C 2.7761424 3 3 2.7761424 3 2.5 C 3 2.2238576 2.7761424 2 2.5 2 z M 5.5 2 C 5.2238576 2 5 2.2238576 5 2.5 C 5 2.7761424 5.2238576 3 5.5 3 C 5.7761424 3 6 2.7761424 6 2.5 C 6 2.2238576 5.7761424 2 5.5 2 z M 13.160156 2 L 9.7382812 6.3105469 C 9.062765 6.0537156 8.2111082 5.9824498 7 6 C 5.6442244 7.2930815 4.7507597 7.7091991 2 8 L 2 9 C 4.1137135 12.371692 5.4745763 14 9 14 L 10 14 C 11.073961 12.616195 11.627119 11.610169 12 10 L 12 9 C 11.558507 8.0093924 11.158004 7.334604 10.673828 6.8789062 L 14 2.6601562 L 13.160156 2 z M 4 4 C 3.4477153 4 3 4.4477153 3 5 C 3 5.5522847 3.4477153 6 4 6 C 4.5522847 6 5 5.5522847 5 5 C 5 4.4477153 4.5522847 4 4 4 z M 7.5292969 7.1015625 C 9.6322903 7.2655765 10.168585 8.0162663 10.857422 9.6992188 C 10.284594 11.24586 10.385403 11.602833 9.2734375 12.96875 C 6.1355922 12.694915 5.052768 11.540538 3.3261719 8.8300781 C 5.122354 8.7567482 6.1084274 8.1046285 7.5292969 7.1015625 z "
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<path
style="fill:currentColor;fill-opacity:1;stroke:none"
d="M 17.564453 2.7558594 L 14.298828 8.5742188 L 11.882812 7.1386719 L 10.861328 8.8574219 L 16.511719 12.216797 L 17.533203 10.496094 L 15.158203 9.0839844 L 18.435547 3.2441406 L 17.564453 2.7558594 z M 7 6 A 1 1 0 0 0 6 7 A 1 1 0 0 0 7 8 A 1 1 0 0 0 8 7 A 1 1 0 0 0 7 6 z M 3.5 7 A 0.5 0.5 0 0 0 3 7.5 A 0.5 0.5 0 0 0 3.5 8 A 0.5 0.5 0 0 0 4 7.5 A 0.5 0.5 0 0 0 3.5 7 z M 5 9 A 1 1 0 0 0 4 10 A 1 1 0 0 0 5 11 A 1 1 0 0 0 6 10 A 1 1 0 0 0 5 9 z M 10 10 C 8.8815125 11.564268 6.8355055 12.810894 3 13 L 3 14 C 5.1137135 17.371692 8 19 12 19 L 13 19 C 14.311249 17.412805 15.357513 15.967619 16 14 L 16 13 L 11 10 L 10 10 z M 10.529297 11.101562 L 14.857422 13.699219 C 14.284594 15.24586 13.385404 16.602833 12.273438 17.96875 C 8.9999995 18 6.052768 16.540538 4.3261719 13.830078 C 7.4443879 13.51946 9.3457156 12.545306 10.529297 11.101562 z "
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs>
<g transform="translate(1,1)">
<path style="fill:currentColor;fill-opacity:1;stroke:none" d="M 17.564453 2.7558594 L 14.298828 8.5742188 L 11.882812 7.1386719 L 10.861328 8.8574219 L 16.511719 12.216797 L 17.533203 10.496094 L 15.158203 9.0839844 L 18.435547 3.2441406 L 17.564453 2.7558594 z M 7 6 A 1 1 0 0 0 6 7 A 1 1 0 0 0 7 8 A 1 1 0 0 0 8 7 A 1 1 0 0 0 7 6 z M 3.5 7 A 0.5 0.5 0 0 0 3 7.5 A 0.5 0.5 0 0 0 3.5 8 A 0.5 0.5 0 0 0 4 7.5 A 0.5 0.5 0 0 0 3.5 7 z M 5 9 A 1 1 0 0 0 4 10 A 1 1 0 0 0 5 11 A 1 1 0 0 0 6 10 A 1 1 0 0 0 5 9 z M 10 10 C 8.8815125 11.564268 6.8355055 12.810894 3 13 L 3 14 C 5.1137135 17.371692 8 19 12 19 L 13 19 C 14.311249 17.412805 15.357513 15.967619 16 14 L 16 13 L 11 10 L 10 10 z M 10.529297 11.101562 L 14.857422 13.699219 C 14.284594 15.24586 13.385404 16.602833 12.273438 17.96875 C 8.9999995 18 6.052768 16.540538 4.3261719 13.830078 C 7.4443879 13.51946 9.3457156 12.545306 10.529297 11.101562 z " class="ColorScheme-Text"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB