Add an icon for every settings tab

This commit is contained in:
Martchus 2021-05-07 00:05:18 +02:00
parent 180b425e8b
commit cbecf9ccf2
9 changed files with 26 additions and 8 deletions

View File

@ -11,7 +11,7 @@ set(META_APP_CATEGORIES "Network;FileTransfer")
set(META_GUI_OPTIONAL false)
set(META_VERSION_MAJOR 1)
set(META_VERSION_MINOR 1)
set(META_VERSION_PATCH 6)
set(META_VERSION_PATCH 7)
set(META_VERSION_EXACT_SONAME ON)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)

View File

@ -132,12 +132,8 @@ SettingsDialog::SettingsDialog(Plasmoid::SyncthingApplet &applet)
// most startup options don't make much sense for a Plasmoid, so merge webview with startup
auto *const webViewPage = new WebViewOptionPage;
webViewPage->widget()->setWindowTitle(QCoreApplication::translate("Plasmoid::SettingsDialog", "Web view"));
webViewPage->widget()->setWindowIcon(
QIcon::fromTheme(QStringLiteral("internet-web-browser"), QIcon(QStringLiteral(":/icons/hicolor/scalable/apps/internet-web-browser.svg"))));
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
auto *const systemdPage = new SystemdOptionPage;
systemdPage->widget()->setWindowIcon(
QIcon::fromTheme(QStringLiteral("system-run"), QIcon(QStringLiteral(":/icons/hicolor/scalable/apps/system-run.svg"))));
#endif
category = new OptionCategory;

View File

@ -81,6 +81,9 @@ set(REQUIRED_ICONS
preferences-desktop-icons
preferences-desktop-locale
preferences-desktop-notification
preferences-system-startup
preferences-system-startup
preferences-system-services
preferences-other
process-stop
qtcreator

View File

@ -64,6 +64,8 @@ set(REQUIRED_ICONS
edit-paste
list-remove
preferences-desktop-notification
preferences-system-startup
preferences-system-services
view-refresh
emblem-checked
network-connect

View File

@ -11,6 +11,9 @@
<property name="windowTitle">
<string>Autostart</string>
</property>
<property name="windowIcon">
<iconset theme="preferences-system-startup"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="autostartCheckBox">

View File

@ -12,8 +12,8 @@
<string>Connection</string>
</property>
<property name="windowIcon">
<iconset theme="network-connect">
<normaloff>.</normaloff>.</iconset>
<iconset theme="network-connect" resource="../../tray/resources/syncthingtrayicons.qrc">
<normaloff>:/icons/hicolor/scalable/actions/network-connect.svg</normaloff>:/icons/hicolor/scalable/actions/network-connect.svg</iconset>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="verticalSpacing">
@ -583,6 +583,7 @@
</customwidget>
</customwidgets>
<resources>
<include location="../../tray/resources/syncthingtrayicons.qrc"/>
<include location="../resources/syncthingwidgetsicons.qrc"/>
</resources>
<connections>

View File

@ -5,6 +5,10 @@
<property name="windowTitle">
<string>Syncthing launcher</string>
</property>
<property name="windowIcon">
<iconset theme="system-run" resource="../resources/syncthingwidgetsicons.qrc">
<normaloff>:/icons/hicolor/scalable/apps/system-run.svg</normaloff>:/icons/hicolor/scalable/apps/system-run.svg</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="enabledCheckBox">

View File

@ -5,6 +5,9 @@
<property name="windowTitle">
<string>Systemd</string>
</property>
<property name="windowIcon">
<iconset theme="preferences-system-services"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="showButtonCheckBox">

View File

@ -11,6 +11,10 @@
<property name="windowTitle">
<string>General</string>
</property>
<property name="windowIcon">
<iconset theme="internet-web-browser" resource="../resources/syncthingwidgetsicons.qrc">
<normaloff>:/icons/hicolor/scalable/apps/internet-web-browser.svg</normaloff>:/icons/hicolor/scalable/apps/internet-web-browser.svg</iconset>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="1" column="0">
<widget class="QLabel" name="usageLabel">
@ -65,6 +69,8 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../resources/syncthingwidgetsicons.qrc"/>
</resources>
<connections/>
</ui>