height: Math.min(implicitHeight, maxMenuHeight)\r
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape\r
\r
- background: Rectangle {\r
- border.color: palette.dark\r
- color: palette.window\r
- radius: Style.halfTrayWindowRadius\r
- }\r
-\r
onClosed: {\r
// HACK: reload account Instantiator immediately by restting it - could be done better I guess\r
// see also onVisibleChanged above\r
Accessible.name: qsTr("Add new account")\r
Accessible.onPressAction: addAccountButton.clicked()\r
\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: palette.highlight\r
- visible: addAccountButton.hovered\r
- }\r
}\r
\r
Rectangle {\r
Accessible.name: Systray.syncIsPaused ? qsTr("Resume sync for all") : qsTr("Pause sync for all")\r
Accessible.onPressAction: syncPauseButton.clicked()\r
\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: palette.highlight\r
- visible: syncPauseButton.hovered\r
- }\r
}\r
\r
MenuItem {\r
Accessible.name: text\r
Accessible.onPressAction: settingsButton.clicked()\r
\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: palette.highlight\r
- visible: settingsButton.hovered\r
- }\r
}\r
\r
MenuItem {\r
onClicked: Systray.shutdown()\r
Accessible.role: Accessible.MenuItem\r
Accessible.name: text\r
- Accessible.onPressAction: exitButton.clicked()\r
-\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: palette.highlight\r
- visible: exitButton.hovered\r
- }\r
+ Accessible.onPressAction: exitButton.clicked() \r
}\r
}\r
\r
text: root.toolTipText
}
- background: Item {
- height: parent.height
- width: parent.width
- Rectangle {
- anchors.fill: parent
- anchors.margins: Style.normalBorderWidth
- color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.window
- radius: Style.halfTrayWindowRadius
- }
- }
-
contentItem: RowLayout {
anchors.fill: parent
anchors.leftMargin: Style.trayWindowMenuEntriesMargin
height: implicitHeight + y > Style.trayWindowHeight ? Style.trayWindowHeight - y : implicitHeight
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape
- background: Rectangle {
- border.color: palette.dark
- color: palette.window
- radius: Style.trayWindowRadius
- }
-
contentItem: ScrollView {
id: foldersMenuScrollView
\r
height: Style.trayWindowHeaderHeight\r
\r
- background: Rectangle {\r
- anchors.fill: parent\r
- anchors.margins: 1\r
- color: (userLine.hovered || userLine.visualFocus) &&\r
- !(userMoreButton.hovered || userMoreButton.visualFocus) ?\r
- palette.highlight : palette.window\r
- radius: Style.halfTrayWindowRadius\r
- }\r
-\r
contentItem: RowLayout {\r
id: userLineLayout\r
spacing: Style.userStatusSpacing\r
id: userMoreButtonMenu\r
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape\r
\r
- background: Rectangle {\r
- border.color: palette.dark\r
- radius: Style.halfTrayWindowRadius\r
- color: palette.window\r
- }\r
-\r
MenuItem {\r
visible: model.isConnected && model.serverHasUserStatus\r
height: visible ? implicitHeight : 0\r
font.pixelSize: Style.topLinePixelSize\r
hoverEnabled: true\r
onClicked: showUserStatusSelector(index)\r
-\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: parent.hovered ? palette.highlight : palette.window\r
- }\r
- }\r
+ }\r
\r
MenuItem {\r
text: model.isConnected ? qsTr("Log out") : qsTr("Log in")\r
}\r
accountMenu.close()\r
}\r
-\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: parent.hovered ? palette.highlight : palette.window\r
- }\r
- }\r
+ }\r
\r
MenuItem {\r
id: removeAccountButton\r
Accessible.role: Accessible.Button\r
Accessible.name: text\r
Accessible.onPressAction: removeAccountButton.clicked()\r
-\r
- background: Rectangle {\r
- radius: Style.halfTrayWindowRadius\r
- color: parent.hovered ? palette.highlight : palette.window\r
- }\r
- }\r
+ }\r
}\r
}\r
}\r