diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 00:55:03 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-21 00:55:03 +1000 |
| commit | 956e706f74468f29ea5fba5c122ea0a8e675c9de (patch) | |
| tree | 680df32f6e61ebe2b57dd59812df6ab9435fb783 /modules/launcher/Actions.qml | |
| parent | launcher: fix height when one item (diff) | |
| download | caelestia-shell-956e706f74468f29ea5fba5c122ea0a8e675c9de.tar.gz caelestia-shell-956e706f74468f29ea5fba5c122ea0a8e675c9de.tar.bz2 caelestia-shell-956e706f74468f29ea5fba5c122ea0a8e675c9de.zip | |
feat: launcher calculator
Requires libqalculate
Diffstat (limited to 'modules/launcher/Actions.qml')
| -rw-r--r-- | modules/launcher/Actions.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/launcher/Actions.qml b/modules/launcher/Actions.qml index da6f726..bca8930 100644 --- a/modules/launcher/Actions.qml +++ b/modules/launcher/Actions.qml @@ -10,8 +10,19 @@ import QtQuick Singleton { id: root + property string qalcResult + readonly property list<Action> list: [ Action { + name: qsTr("Calculator") + desc: qsTr("Do simple math equations (powered by Qalc)") + icon: "calculate" + + function onClicked(list: AppList): void { + root.autocomplete(list, "calc"); + } + }, + Action { name: qsTr("Scheme") desc: qsTr("Change the current colour scheme") icon: "palette" |