@@ -31,17 +31,19 @@ void AppearancePage::setupUI() {
3131
3232 auto *cardLayout = SettingsPageHelper::addSection (mainLayout, tr (" Appearance" ), QString (), this );
3333
34+ #if !defined(Q_OS_MACOS)
35+ // On macOS the system title bar is always used, so this option is hidden.
3436 {
3537 const QString label (tr (" System title bar" ));
3638 m_systemTitleBarCheckBox = WidgetsFactory::createCheckBox (label, this );
3739 m_systemTitleBarCheckBox->setToolTip (tr (" Use system title bar" ));
38- cardLayout->addWidget (
39- SettingsPageHelper::createCheckBoxRow (m_systemTitleBarCheckBox,
40- m_systemTitleBarCheckBox->toolTip (), this ));
40+ cardLayout->addWidget (SettingsPageHelper::createCheckBoxRow (
41+ m_systemTitleBarCheckBox, m_systemTitleBarCheckBox->toolTip (), this ));
4142 addSearchItem (label, m_systemTitleBarCheckBox->toolTip (), m_systemTitleBarCheckBox);
4243 connect (m_systemTitleBarCheckBox, &QCheckBox::stateChanged, this ,
4344 &AppearancePage::pageIsChangedWithRestartNeeded);
4445 }
46+ #endif
4547
4648 {
4749 m_toolBarIconSizeSpinBox = WidgetsFactory::createSpinBox (this );
@@ -52,9 +54,8 @@ void AppearancePage::setupUI() {
5254
5355 const QString label (tr (" Main tool bar icon size" ));
5456 cardLayout->addWidget (SettingsPageHelper::createSeparator (this ));
55- cardLayout->addWidget (
56- SettingsPageHelper::createSettingRow (label, m_toolBarIconSizeSpinBox->toolTip (),
57- m_toolBarIconSizeSpinBox, this ));
57+ cardLayout->addWidget (SettingsPageHelper::createSettingRow (
58+ label, m_toolBarIconSizeSpinBox->toolTip (), m_toolBarIconSizeSpinBox, this ));
5859 addSearchItem (label, m_toolBarIconSizeSpinBox->toolTip (), m_toolBarIconSizeSpinBox);
5960 connect (m_toolBarIconSizeSpinBox, QOverload<int >::of (&QSpinBox::valueChanged), this ,
6061 &AppearancePage::pageIsChangedWithRestartNeeded);
0 commit comments