fix: menu styling
This commit is contained in:
parent
7d19aaba6f
commit
2555eec8aa
|
@ -143,6 +143,7 @@ Item {
|
|||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
addChatLbl.state = "rotated"
|
||||
let x = addChatLbl.x + addChatLbl.width / 2 - newChatMenu.width / 2
|
||||
|
|
|
@ -188,9 +188,9 @@ Item {
|
|||
anchors.fill: parent
|
||||
onClicked : {
|
||||
if(channelName.text === "") return;
|
||||
|
||||
chatsModel.joinChat(channelName.text)
|
||||
popup.close()
|
||||
chatsModel.joinChat(channelName.text);
|
||||
channelName.text = "";
|
||||
popup.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,9 @@ Menu {
|
|||
Item {
|
||||
id: menuIcon
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.leftMargin: 12
|
||||
anchors.topMargin: 4
|
||||
Image {
|
||||
fillMode: Image.Pad
|
||||
id: popupMenuItemIcon
|
||||
|
@ -38,6 +40,7 @@ Menu {
|
|||
Text {
|
||||
anchors.left: menuIcon.right
|
||||
anchors.leftMargin: 32
|
||||
topPadding: 4
|
||||
text: popupMenuItem.text
|
||||
font: popupMenuItem.font
|
||||
color: popupMenuItem.highlighted ? Theme.white : Theme.black
|
||||
|
|
Loading…
Reference in New Issue