From c9da229eafac7529529138f98042611c48f6b279 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sat, 2 Mar 2019 14:21:01 -0500 Subject: [PATCH] [Krunner] Leaner look --- lookandfeel/contents/runcommand/RunCommand.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lookandfeel/contents/runcommand/RunCommand.qml b/lookandfeel/contents/runcommand/RunCommand.qml index 41e14beb5..3f3dce568 100644 --- a/lookandfeel/contents/runcommand/RunCommand.qml +++ b/lookandfeel/contents/runcommand/RunCommand.qml @@ -54,14 +54,14 @@ ColumnLayout { Layout.alignment: Qt.AlignTop PlasmaComponents.ToolButton { iconSource: "configure" + visible: false onClicked: { runnerWindow.visible = false runnerWindow.displayConfiguration() } Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure") Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure Search Plugins") - visible: runnerWindow.canConfigure - tooltip: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure KRunner...") + tooltip: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure Krunner...") } PlasmaComponents.TextField { id: queryField @@ -195,6 +195,7 @@ ColumnLayout { } PlasmaComponents.ToolButton { iconSource: "window-close" + visible: false onClicked: runnerWindow.visible = false Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close") Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close Search") @@ -272,7 +273,7 @@ ColumnLayout { } Keys.onReturnPressed: runCurrentIndex(event) Keys.onEnterPressed: runCurrentIndex(event) - + Keys.onTabPressed: { if (currentIndex == listView.count-1) { listView.nextItemInFocusChain(true).forceActiveFocus(); @@ -298,7 +299,7 @@ ColumnLayout { queryField.focus = true; } } - + Keys.onUpPressed: decrementCurrentIndex() Keys.onDownPressed: incrementCurrentIndex()