diff --git a/src/kcms/scripts/package/contents/ui/main.qml b/src/kcms/scripts/package/contents/ui/main.qml index 8ed8a07e4e..a32617b12d 100644 --- a/src/kcms/scripts/package/contents/ui/main.qml +++ b/src/kcms/scripts/package/contents/ui/main.qml @@ -19,6 +19,24 @@ ScrollViewKCM { implicitWidth: Kirigami.Units.gridUnit * 22 implicitHeight: Kirigami.Units.gridUnit * 20 + actions: [ + Kirigami.Action { + icon.name: "document-import" + text: i18n("Install from File…") + onTriggered: kcm.importScript() + }, + NewStuff.Action { + text: i18nc("@action:button get new KWin scripts", "Get New…") + visible: KAuthorized.authorize(KAuthorized.GHNS) + configFile: "kwinscripts.knsrc" + onEntryEvent: (entry, event) => { + if (event === NewStuff.Engine.StatusChangedEvent) { + kcm.onGHNSEntriesChanged() + } + } + } + ] + header: ColumnLayout { spacing: Kirigami.Units.smallSpacing @@ -52,26 +70,4 @@ ScrollViewKCM { ] } } - - footer: Kirigami.ActionToolBar { - flat: false - alignment: Qt.AlignRight - actions: [ - Kirigami.Action { - icon.name: "document-import" - text: i18n("Install from File…") - onTriggered: kcm.importScript() - }, - NewStuff.Action { - text: i18n("Get New Scripts…") - visible: KAuthorized.authorize(KAuthorized.GHNS) - configFile: "kwinscripts.knsrc" - onEntryEvent: (entry, event) => { - if (event === NewStuff.Engine.StatusChangedEvent) { - kcm.onGHNSEntriesChanged() - } - } - } - ] - } }