\r
RowLayout {\r
id: openLocalFolderRowLayout\r
- height: Style.trayWindowHeaderHeight\r
- width: height\r
- anchors.left: accountControlRowLayout.right\r
- anchors.top: accountControlRowLayout.top\r
spacing: 0\r
Layout.preferredWidth: Style.trayWindowHeaderHeight\r
Layout.preferredHeight: Style.trayWindowHeaderHeight\r
visible: UserModel.currentUser.hasLocalFolder\r
icon.source: "qrc:///client/theme/white/folder.svg"\r
onClicked: UserModel.openCurrentAccountLocalFolder()\r
- }\r
- \r
- Rectangle {\r
- id: folderStateIndicatorBackground\r
- width: Style.folderStateIndicatorSize\r
- height: width\r
- anchors.top: openLocalFolderButton.verticalCenter\r
- anchors.left: openLocalFolderButton.horizontalCenter\r
- color: Style.ncBlue\r
- radius: width*0.5\r
- }\r
+ \r
+ Rectangle {\r
+ id: folderStateIndicatorBackground\r
+ width: Style.folderStateIndicatorSize\r
+ height: width\r
+ anchors.top: openLocalFolderButton.verticalCenter\r
+ anchors.left: openLocalFolderButton.horizontalCenter\r
+ color: Style.ncBlue\r
+ radius: width*0.5\r
+ z: 1\r
+ }\r
+ }\r
\r
- Image {\r
+ Image {\r
id: folderStateIndicator\r
source: UserModel.isUserConnected(UserModel.currentUserId)\r
? Style.stateOnlineImageSource\r
: Style.stateOfflineImageSource\r
cache: false\r
- x: folderStateIndicatorBackground.x\r
- y: folderStateIndicatorBackground.y\r
+ anchors.top: openLocalFolderButton.verticalCenter\r
+ anchors.left: openLocalFolderButton.horizontalCenter\r
\r
sourceSize.width: Style.folderStateIndicatorSize\r
sourceSize.height: Style.folderStateIndicatorSize\r