From 4795daf39bec6f13ac5604fe11e65e6c5677b108 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Tue, 24 Sep 2024 08:46:44 -0600 Subject: [PATCH] kcms/effects: remove hint text on top It's pretty obvious, and now individual effects that are activated by keyboard shortcut are indicate inline. The label no longer adds much value, so remove it. --- src/kcms/effects/ui/main.qml | 55 ++++++++++++++---------------------- 1 file changed, 21 insertions(+), 34 deletions(-) diff --git a/src/kcms/effects/ui/main.qml b/src/kcms/effects/ui/main.qml index 7c5439f099..945b786d20 100644 --- a/src/kcms/effects/ui/main.qml +++ b/src/kcms/effects/ui/main.qml @@ -32,53 +32,40 @@ ScrollViewKCM { } } - header: ColumnLayout { + header: RowLayout { spacing: Kirigami.Units.smallSpacing - QQC2.Label { - Layout.fillWidth: true - Layout.leftMargin: Kirigami.Units.smallSpacing - Layout.rightMargin: Kirigami.Units.smallSpacing + Kirigami.SearchField { + id: searchField - wrapMode: Text.WordWrap - text: i18n("Hint: To find out or configure how to activate an effect, look at the effect's settings.") + Layout.fillWidth: true } - RowLayout { - spacing: Kirigami.Units.smallSpacing - - Kirigami.SearchField { - id: searchField - - Layout.fillWidth: true - } + QQC2.ToolButton { + id: filterButton - QQC2.ToolButton { - id: filterButton + icon.name: "view-filter" - icon.name: "view-filter" + checkable: true + checked: menu.opened + onClicked: menu.popup(filterButton, filterButton.width - menu.width, filterButton.height) - checkable: true - checked: menu.opened - onClicked: menu.popup(filterButton, filterButton.width - menu.width, filterButton.height) - - QQC2.ToolTip { - text: i18n("Configure Filter") - } + QQC2.ToolTip { + text: i18n("Configure Filter") } + } - QQC2.Menu { - id: menu + QQC2.Menu { + id: menu - modal: true + modal: true - QQC2.MenuItem { - checkable: true - checked: searchModel.excludeUnsupported - text: i18n("Exclude unsupported effects") + QQC2.MenuItem { + checkable: true + checked: searchModel.excludeUnsupported + text: i18n("Exclude unsupported effects") - onToggled: searchModel.excludeUnsupported = checked - } + onToggled: searchModel.excludeUnsupported = checked } } }