From 7dacde2d3a48589d658f64c034185d6b582a54ed Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 19 Mar 2020 18:21:13 +0200 Subject: [PATCH] update Preferences settings to follow KDE HIG --- app/settings/settingsdialog.cpp | 8 - app/settings/settingsdialog.ui | 1038 ++++++++++++++----------------- 2 files changed, 476 insertions(+), 570 deletions(-) diff --git a/app/settings/settingsdialog.cpp b/app/settings/settingsdialog.cpp index 9679aa182..cd093ce69 100644 --- a/app/settings/settingsdialog.cpp +++ b/app/settings/settingsdialog.cpp @@ -120,14 +120,6 @@ SettingsDialog::SettingsDialog(QWidget *parent, Latte::Corona *corona) } }); - - //! RTL support for labels in preferences - if (qApp->layoutDirection() == Qt::RightToLeft) { - ui->behaviorLbl->setAlignment(Qt::AlignRight | Qt::AlignTop); - ui->mouseSensetivityLbl->setAlignment(Qt::AlignRight | Qt::AlignTop); - ui->delayLbl->setAlignment(Qt::AlignRight | Qt::AlignTop); - } - loadSettings(); //! SIGNALS diff --git a/app/settings/settingsdialog.ui b/app/settings/settingsdialog.ui index bf8a4bc7b..c40989fe5 100644 --- a/app/settings/settingsdialog.ui +++ b/app/settings/settingsdialog.ui @@ -6,10 +6,22 @@ 0 0 - 941 - 727 + 930 + 716 + + + 0 + 0 + + + + + 500 + 0 + + Settings @@ -425,51 +437,132 @@ 9 - + + + + 0 + 0 + + QFrame::NoFrame - - 0 - - - Qt::ScrollBarAsNeeded - - - Qt::ScrollBarAlwaysOff - true - + 0 0 - 890 - 662 + 895 + 375 - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - + + + 0 + 0 + + + - - - + + + + + + + + 0 + 0 + + + + + 70 + 0 + + + + + 110 + 16777215 + + + + Outline width used from background to draw its borders + + + px. + + + 1 + + + 20 + + + + + + + true + + + + 0 + 0 + + + + Outline width used from background to draw its borders + + + outline width + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + + + Activate support for borderless maximized windows between different layouts + + + Support borderless maximized windows in different layouts + + + + + + + Forward ⌘ press from KWin to Latte in order to activate Application Launcher. It is suggested to disable that option if you remove Latte. + + + Press ⌘ to activate Application Launcher + + + + + Qt::Vertical @@ -484,48 +577,18 @@ - - - - - 75 - true - + + + + Start the application automatically after each relogin - Appearance + Enable autostart during startup - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - Use 3D style for notification and shortcut badges - - - - - - - + + Qt::Vertical @@ -535,368 +598,22 @@ 20 - 20 + 10 - - - - - 0 - 0 - - - - - 75 - true - + + + + Press and hold ⌘ to show shortcuts badges for applets and tasks - Behavior - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + Press and Hold ⌘ to show shortcuts badges - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - Start the application automatically after each relogin - - - Enable autostart during startup - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - Provide visual feedback when layouts are activated automatically - - - Show informative window for layouts automatic activation - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Maximum - - - - 20 - 20 - - - - - - - - Activate support for borderless maximized windows between different layouts - - - Support borderless maximized windows in different layouts - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - - 75 - true - - - - Actions - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - Forward ⌘ press from KWin to Latte in order to activate Application Launcher. It is suggested to disable that option if you remove Latte. - - - 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 - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - - 75 - true - - - - Mouse Sensitivity - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - - 0 - 0 - - - - Parabolic Effect - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 7 - 20 - - - - - - - - - - - 0 - 0 - - - - Low sensitivity for parabolic effect (low cpu usage and performance) - - - Low - - - true - - - - - - - - 0 - 0 - - - - Medium sensitivity for parabolic effect (normal cpu usage and performance) - - - Medium - - - true - - - - - - - - 0 - 0 - - - - High sensitivity for parabolic effect (high cpu usage and performance) - - - High - - - true - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - + Qt::Vertical @@ -907,53 +624,13 @@ 20 - 20 + 10 - - - - - 75 - true - - - - Delay - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - Different hardware can have different delays during screen changes. -This tracker is used in order to not lose any screen related update. - - - React to screen changes after - - - + + @@ -962,9 +639,15 @@ This tracker is used in order to not lose any screen related update. 0 + + + 70 + 0 + + - 200 + 110 16777215 @@ -995,13 +678,30 @@ This tracker is used in order to not lose any screen related update. + + + + + 0 + 0 + + + + Different hardware can have different delays during screen changes. +This tracker is used in order to not lose any screen related update. + + + reaction delay for changes + + + Qt::Horizontal - QSizePolicy::Fixed + QSizePolicy::Expanding @@ -1013,8 +713,18 @@ This tracker is used in order to not lose any screen related update. - - + + + + Provide visual feedback when layouts are activated automatically + + + Show informative window for layouts automatic activation + + + + + Qt::Vertical @@ -1024,91 +734,102 @@ This tracker is used in order to not lose any screen related update. 20 - 20 + 10 - - - - - 75 - true - + + + + Qt::Vertical + + QSizePolicy::Fixed + + + + 20 + 10 + + + + + + - Plasma Theme + Use 3D style for notification and shortcut badges - - + + - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - - - - - true - - - Outline width used from background to draw its borders - - - Outline width - - - - - + - + 0 0 - - - 111 - 30 - - - - - 200 - 16777215 - - - Outline width used from background to draw its borders + Low sensitivity for parabolic effect (low cpu usage and performance) - - px. + + Low - - 1 - - - 16 + + true - + + + + 0 + 0 + + + + Medium sensitivity for parabolic effect (normal cpu usage and performance) + + + Medium + + + true + + + + + + + + 0 + 0 + + + + High sensitivity for parabolic effect (high cpu usage and performance) + + + High + + + true + + + + + + + mouse sensitivity + + + + + Qt::Horizontal @@ -1117,7 +838,7 @@ This tracker is used in order to not lose any screen related update. - 20 + 60 20 @@ -1125,34 +846,227 @@ This tracker is used in order to not lose any screen related update. - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 20 - - - + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 75 + true + + + + Appearance: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + - - - - Qt::Vertical - - - - 20 - 40 - - - + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Behavior: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 75 + true + + + + Actions: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Parabolic Effect: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Screens: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Plasma Theme: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + +