[Krunner] Leaner look

wilder-5.22
Jacopo De Simoi 5 years ago committed by Jacopo De Simoi
parent fbfe3ed4d4
commit e388426069
  1. 7
      lookandfeel/contents/runcommand/RunCommand.qml

@ -78,13 +78,14 @@ ColumnLayout {
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
PlasmaComponents3.ToolButton { PlasmaComponents3.ToolButton {
icon.name: "configure" icon.name: "configure"
visible:false
onClicked: { onClicked: {
runnerWindow.visible = false runnerWindow.visible = false
runnerWindow.displayConfiguration() runnerWindow.displayConfiguration()
} }
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure") Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure")
Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure Search Plugins") Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure Search Plugins")
visible: runnerWindow.canConfigure
PlasmaComponents3.ToolTip { PlasmaComponents3.ToolTip {
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure KRunner...") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Configure KRunner...")
} }
@ -308,7 +309,7 @@ ColumnLayout {
} }
Keys.onReturnPressed: runCurrentIndex(event) Keys.onReturnPressed: runCurrentIndex(event)
Keys.onEnterPressed: runCurrentIndex(event) Keys.onEnterPressed: runCurrentIndex(event)
Keys.onTabPressed: { Keys.onTabPressed: {
if (currentIndex == listView.count-1) { if (currentIndex == listView.count-1) {
listView.nextItemInFocusChain(true).forceActiveFocus(); listView.nextItemInFocusChain(true).forceActiveFocus();
@ -339,7 +340,7 @@ ColumnLayout {
queryField.focus = true; queryField.focus = true;
} }
} }
Keys.onUpPressed: decrementCurrentIndex() Keys.onUpPressed: decrementCurrentIndex()
Keys.onDownPressed: incrementCurrentIndex() Keys.onDownPressed: incrementCurrentIndex()

Loading…
Cancel
Save