Add acticity menu

pull/7/head
cutefishd 5 years ago
parent d315061385
commit 89f23b3e5c

@ -31,6 +31,15 @@ Item {
backgroundOpacity: Meui.Theme.darkMode ? 0.3 : 0.4 backgroundOpacity: Meui.Theme.darkMode ? 0.3 : 0.4
} }
Meui.DesktopMenu {
id: acticityMenu
MenuItem {
text: qsTr("Close")
onTriggered: acticity.close()
}
}
RowLayout { RowLayout {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: Meui.Units.smallSpacing anchors.leftMargin: Meui.Units.smallSpacing
@ -40,9 +49,10 @@ Item {
StandardItem { StandardItem {
id: acticityItem id: acticityItem
Layout.fillHeight: true Layout.fillHeight: true
width: acticityLayout.implicitWidth + Meui.Units.largeSpacing width: acticityLayout.implicitWidth + Meui.Units.largeSpacing
onClicked: acticityMenu.open()
RowLayout { RowLayout {
id: acticityLayout id: acticityLayout
anchors.fill: parent anchors.fill: parent

Loading…
Cancel
Save