Extract menu opener widget

This commit is contained in:
David Heinemeier Hansson
2026-05-20 17:53:05 +02:00
parent 1ff343428c
commit 647bb88ab2
4 changed files with 27 additions and 14 deletions
+24
View File
@@ -0,0 +1,24 @@
import QtQuick
import qs.Ui
BarWidget {
id: root
moduleName: "omarchy"
implicitWidth: button.implicitWidth
implicitHeight: button.implicitHeight
WidgetButton {
id: button
anchors.fill: parent
bar: root.bar
text: "\ue900"
fontFamily: "omarchy"
horizontalMargin: 7.5
onPressed: function(button) {
if (!root.bar) return
if (button === Qt.RightButton) root.bar.run("xdg-terminal-exec")
else root.bar.run("omarchy-shell menu toggle root")
}
}
}