fix: missing setting colorful icon

This commit is contained in:
sithlord48
2025-01-12 22:51:24 -05:00
committed by Nick Bolton
parent 0f5bcd6d12
commit 3cce11f9d9
2 changed files with 4 additions and 12 deletions

View File

@ -49,6 +49,9 @@ SettingsDialog::SettingsDialog(
ui->m_pPushButtonTlsCertPath->setIcon(QIcon::fromTheme(QIcon::ThemeIcon::DocumentOpen));
ui->m_pButtonBrowseLog->setIcon(QIcon::fromTheme(QIcon::ThemeIcon::DocumentOpen));
ui->rb_icon_mono->setIcon(QIcon(QStringLiteral(":/icons/deskflow-%1/apps/64/deskflow-symbolic").arg(iconMode())));
ui->rb_icon_colorful->setIcon(QIcon(QStringLiteral(":/icons/deskflow-%1/apps/64/deskflow").arg(iconMode())));
// force the first tab, since qt creator sets the active tab as the last one
// the developer was looking at, and it's easy to accidentally save that.
ui->m_pTabWidget->setCurrentIndex(0);
@ -243,7 +246,6 @@ void SettingsDialog::loadFromConfig()
ui->rb_icon_colorful->setChecked(true);
else
ui->rb_icon_mono->setChecked(true);
ui->rb_icon_mono->setIcon(QIcon(QStringLiteral(":/icons/deskflow-%1/apps/64/deskflow-symbolic").arg(iconMode())));
updateTlsControls();
}

View File

@ -174,10 +174,6 @@
<property name="text">
<string>Colorful</string>
</property>
<property name="icon">
<iconset resource="../../res/deskflow.qrc">
<normaloff>:/icons/common/deskflow.svg</normaloff>:/icons/common/deskflow.svg</iconset>
</property>
</widget>
</item>
<item>
@ -185,10 +181,6 @@
<property name="text">
<string>Monocolor</string>
</property>
<property name="icon">
<iconset resource="../../res/deskflow.qrc">
<normaloff>:/icons/deskflow-dark/apps/64/deskflow-symbolic.svg</normaloff>:/icons/deskflow-dark/apps/64/deskflow-symbolic.svg</iconset>
</property>
</widget>
</item>
</layout>
@ -794,9 +786,7 @@
<tabstop>m_pRadioSystemScope</tabstop>
<tabstop>m_pComboElevate</tabstop>
</tabstops>
<resources>
<include location="../../res/deskflow.qrc"/>
</resources>
<resources/>
<connections>
<connection>
<sender>m_pButtonBox</sender>