Layout.preferredWidth: (userLineLayout.width * (5/6))\r
Layout.preferredHeight: (userLineLayout.height)\r
display: AbstractButton.IconOnly\r
+ hoverEnabled: true\r
flat: true\r
\r
MouseArea {\r
}\r
}\r
\r
- background: Rectangle {\r
- color: "transparent"\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
}\r
\r
RowLayout {\r
MenuItem {\r
text: isConnected ? qsTr("Log out") : qsTr("Log in")\r
font.pixelSize: Style.topLinePixelSize\r
+ hoverEnabled: true\r
onClicked: {\r
isConnected ? UserModel.logout(index) : UserModel.login(index)\r
accountMenu.close()\r
}\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
+ }\r
}\r
\r
MenuItem {\r
text: qsTr("Remove Account")\r
font.pixelSize: Style.topLinePixelSize\r
+ hoverEnabled: true\r
onClicked: {\r
UserModel.removeAccount(index)\r
accountMenu.close()\r
}\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
+ }\r
}\r
}\r
}\r
MenuItem {\r
id: addAccountButton\r
height: Style.addAccountButtonHeight\r
+ hoverEnabled: true\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
+ }\r
\r
RowLayout {\r
anchors.fill: parent\r
MenuItem {\r
id: syncPauseButton\r
font.pixelSize: Style.topLinePixelSize\r
+ hoverEnabled: true\r
onClicked: Systray.pauseResumeSync()\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
+ }\r
}\r
\r
MenuItem {\r
text: qsTr("Settings")\r
font.pixelSize: Style.topLinePixelSize\r
+ hoverEnabled: true\r
onClicked: Systray.openSettings()\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
+ }\r
}\r
\r
MenuItem {\r
text: qsTr("Exit");\r
font.pixelSize: Style.topLinePixelSize\r
+ hoverEnabled: true\r
onClicked: Systray.shutdown()\r
+\r
+ background: Item {\r
+ height: parent.height\r
+ width: parent.menu.width\r
+ Rectangle {\r
+ anchors.fill: parent\r
+ anchors.margins: 1\r
+ color: parent.parent.hovered ? Style.lightHover : "transparent"\r
+ }\r
+ }\r
}\r
}\r
}\r