Implement a completer for commands

fixes #429
This commit is contained in:
Nicolas Werner 2022-11-09 04:58:19 +01:00
parent 0cc1c6eddc
commit 485babba14
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 319 additions and 1 deletions

View file

@ -209,6 +209,30 @@ Control {
}
DelegateChoice {
roleValue: "command"
RowLayout {
id: del
anchors.centerIn: parent
spacing: rowSpacing
Label {
text: model.name
color: model.index == popup.currentIndex ? Nheko.colors.highlightedText : Nheko.colors.text
font.bold: true
}
Label {
text: model.description
color: model.index == popup.currentIndex ? Nheko.colors.highlightedText : Nheko.colors.buttonText
}
}
}
DelegateChoice {
roleValue: "customEmoji"