Skip to content

Commit 63597af

Browse files
committed
wip: add submenu for the Deck app.
Signed-off-by: Camila Ayres <[email protected]>
1 parent 7e76501 commit 63597af

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/gui/tray/TrayWindowHeader.qml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,33 @@ Rectangle {
123123
Accessible.role: Accessible.MenuItem
124124
Accessible.name: qsTr("Open %1 in browser").arg(model.appName)
125125
Accessible.onPressAction: appEntry.triggered()
126+
MouseArea {
127+
id: deckMoreMouseArea
128+
enabled: model.appName == "Deck"
129+
anchors.fill: parent
130+
hoverEnabled: true
131+
onClicked: deckMoreButtonMenu.visible ? deckMoreButtonMenu.close()
132+
: deckMoreButtonMenu.popup()
133+
}
126134
}
127135
}
128136
}
137+
138+
Menu {
139+
id: deckMoreButtonMenu
140+
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape
141+
width: appsMenu.width
142+
143+
MenuItem {
144+
text: qsTr("Add board")
145+
hoverEnabled: true
146+
height: deckMoreButtonMenu.visible ? Style.smallIconSize : 0
147+
icon.source: "image://svgimage-custom-color/add.svg/" + palette.windowText
148+
icon.height: Style.smallIconSize
149+
font.pixelSize: Style.topLinePixelSize
150+
onClicked: UserAppsModel.openAppUrl("")
151+
}
152+
}
129153
}
130154
}
131155
}

0 commit comments

Comments
 (0)