diff --git a/app/settings/settingsdialog.cpp b/app/settings/settingsdialog.cpp index fb4083e2b..c7ef22499 100644 --- a/app/settings/settingsdialog.cpp +++ b/app/settings/settingsdialog.cpp @@ -196,7 +196,7 @@ SettingsDialog::SettingsDialog(QWidget *parent, Latte::Corona *corona) }); connect(ui->autostartChkBox, &QCheckBox::stateChanged, this, &SettingsDialog::updateApplyButtonsState); - connect(ui->metaChkBox, &QCheckBox::stateChanged, this, &SettingsDialog::updateApplyButtonsState); + connect(ui->metaPressChkBox, &QCheckBox::stateChanged, this, &SettingsDialog::updateApplyButtonsState); connect(ui->infoWindowChkBox, &QCheckBox::stateChanged, this, &SettingsDialog::updateApplyButtonsState); connect(ui->tabWidget, &QTabWidget::currentChanged, this, &SettingsDialog::updateApplyButtonsState); @@ -753,7 +753,7 @@ void SettingsDialog::restoreDefaults() //! Defaults for general Latte settings ui->autostartChkBox->setChecked(true); ui->infoWindowChkBox->setChecked(true); - ui->metaChkBox->setChecked(false); + ui->metaPressChkBox->setChecked(false); ui->noBordersForMaximizedChkBox->setChecked(false); ui->highSensitivityBtn->setChecked(true); ui->screenTrackerSpinBox->setValue(SCREENTRACKERDEFAULTVALUE); @@ -920,7 +920,7 @@ void SettingsDialog::loadSettings() ui->autostartChkBox->setChecked(m_corona->universalSettings()->autostart()); ui->infoWindowChkBox->setChecked(m_corona->universalSettings()->showInfoWindow()); - ui->metaChkBox->setChecked(m_corona->universalSettings()->metaForwardedToLatte()); + ui->metaPressChkBox->setChecked(m_corona->universalSettings()->metaForwardedToLatte()); ui->noBordersForMaximizedChkBox->setChecked(m_corona->universalSettings()->canDisableBorders()); if (m_corona->universalSettings()->mouseSensitivity() == Types::LowSensitivity) { @@ -953,7 +953,7 @@ QList SettingsDialog::currentSettings() settings << m_inMemoryButtons->checkedId(); settings << (int)ui->autostartChkBox->isChecked(); settings << (int)ui->infoWindowChkBox->isChecked(); - settings << (int)ui->metaChkBox->isChecked(); + settings << (int)ui->metaPressChkBox->isChecked(); settings << (int)ui->noBordersForMaximizedChkBox->isChecked(); settings << m_mouseSensitivityButtons->checkedId(); settings << ui->screenTrackerSpinBox->value(); @@ -1208,7 +1208,7 @@ void SettingsDialog::updateApplyButtonsState() //! Defaults for general Latte settings if (!ui->autostartChkBox->isChecked() - || ui->metaChkBox->isChecked() + || ui->metaPressChkBox->isChecked() || !ui->infoWindowChkBox->isChecked() || ui->noBordersForMaximizedChkBox->isChecked() || !ui->highSensitivityBtn->isChecked() @@ -1333,7 +1333,7 @@ bool SettingsDialog::saveAllChanges() //! Update universal settings Latte::Types::MouseSensitivity sensitivity = static_cast(m_mouseSensitivityButtons->checkedId()); bool autostart = ui->autostartChkBox->isChecked(); - bool forwardMeta = ui->metaChkBox->isChecked(); + bool forwardMeta = ui->metaPressChkBox->isChecked(); bool showInfoWindow = ui->infoWindowChkBox->isChecked(); bool noBordersForMaximized = ui->noBordersForMaximizedChkBox->isChecked(); diff --git a/app/settings/settingsdialog.ui b/app/settings/settingsdialog.ui index 3cea2ac9c..bb3daa9ee 100644 --- a/app/settings/settingsdialog.ui +++ b/app/settings/settingsdialog.ui @@ -140,7 +140,8 @@ - .. + + @@ -154,7 +155,8 @@ - .. + + @@ -213,7 +215,8 @@ - .. + + @@ -227,7 +230,8 @@ - .. + + false @@ -244,7 +248,8 @@ - .. + + @@ -274,7 +279,8 @@ - .. + + true @@ -351,7 +357,8 @@ - .. + + false @@ -368,7 +375,8 @@ - .. + + @@ -382,7 +390,8 @@ - .. + + @@ -445,23 +454,14 @@ 0 0 805 - 518 + 523 0 - - 0 - - - 0 - - - 0 - - + 0 @@ -642,12 +642,42 @@ - + - Forward Meta key from KWin to Latte in order to activate Application Launcher. It is suggested to disable that option if you remove Latte. + Forward ⌘ press from KWin to Latte in order to activate Application Launcher. It is suggested to disable that option if you remove Latte. - Meta key activates Application Launcher + Press ⌘ to activate Application Launcher + + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + + + Press and hold ⌘ to show shortcuts badges for applets and tasks + + + Press and Hold ⌘ to show shortcuts badges