anchors.fill: parent\r
hoverEnabled: Style.hoverEffectsEnabled\r
\r
- // HACK: Imitate Qt hover effect brightness (which is not accessible as property)\r
- // so that indicator background also flicks when hovered\r
- onContainsMouseChanged: {\r
- currentAccountStateIndicatorBackground.color = (containsMouse ? Style.ncBlueHover : Style.ncBlue)\r
- }\r
-\r
// We call open() instead of popup() because we want to position it\r
// exactly below the dropdown button, not the mouse\r
onClicked: {\r
radius: width*0.5\r
}\r
\r
+ Rectangle {\r
+ width: Style.accountAvatarStateIndicatorSize + 2\r
+ height: width\r
+ anchors.bottom: currentAccountAvatar.bottom\r
+ anchors.right: currentAccountAvatar.right\r
+ color: accountBtnMouseArea.containsMouse ? "white" : "transparent"\r
+ opacity: 0.2\r
+ radius: width*0.5\r
+ }\r
+\r
Image {\r
id: currentAccountStateIndicator\r
source: UserModel.isUserConnected(UserModel.currentUserId) ? "qrc:///client/theme/colored/state-ok.svg" : "qrc:///client/theme/colored/state-offline.svg"\r
QtObject {\r
// Colors\r
property color ncBlue: "#0082c9"\r
- property color ncBlueHover: "#009dd9"\r
property color lightHover: "#f7f7f7"\r
property color menuBorder: "#bdbdbd"\r
\r