From 89f23b3e5cefc3525c73be2cc7fd234f75d6cd04 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Thu, 8 Apr 2021 00:48:50 +0800 Subject: [PATCH] Add acticity menu --- qml/main.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index 585f638..c7c8f50 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -31,6 +31,15 @@ Item { backgroundOpacity: Meui.Theme.darkMode ? 0.3 : 0.4 } + Meui.DesktopMenu { + id: acticityMenu + + MenuItem { + text: qsTr("Close") + onTriggered: acticity.close() + } + } + RowLayout { anchors.fill: parent anchors.leftMargin: Meui.Units.smallSpacing @@ -40,9 +49,10 @@ Item { StandardItem { id: acticityItem Layout.fillHeight: true - width: acticityLayout.implicitWidth + Meui.Units.largeSpacing + onClicked: acticityMenu.open() + RowLayout { id: acticityLayout anchors.fill: parent