}\r
}\r
\r
+ OpacityMask {\r
+ anchors.fill: parent\r
+ source: ShaderEffectSource {\r
+ sourceItem: trayWindowBackground\r
+ hideSource: true\r
+ }\r
+ maskSource: Rectangle {\r
+ width: trayWindowBackground.width\r
+ height: trayWindowBackground.height\r
+ radius: trayWindowBackground.radius\r
+ }\r
+ }\r
+\r
Rectangle {\r
id: trayWindowBackground\r
\r
anchors.top: trayWindowBackground.top\r
height: Style.trayWindowHeaderHeight\r
width: Style.trayWindowWidth\r
- radius: (Style.trayWindowRadius > 0) ? (Style.trayWindowRadius - 1) : 0\r
color: Style.ncBlue\r
\r
// The overlay rectangle below eliminates the rounded corners from the bottom of the header\r
}\r
}\r
\r
- background:\r
- Item {\r
- id: leftHoverContainer\r
-\r
- height: Style.trayWindowHeaderHeight\r
- width: Style.currentAccountButtonWidth\r
- Rectangle {\r
- width: Style.currentAccountButtonWidth / 2\r
- height: Style.trayWindowHeaderHeight / 2\r
- color: "transparent"\r
- clip: true\r
- Rectangle {\r
- width: Style.currentAccountButtonWidth\r
- height: Style.trayWindowHeaderHeight\r
- radius: Style.trayWindowRadius\r
- color: "white"\r
- opacity: 0.2\r
- visible: accountBtnMouseArea.containsMouse\r
- }\r
- }\r
- Rectangle {\r
- width: Style.currentAccountButtonWidth / 2\r
- height: Style.trayWindowHeaderHeight / 2\r
- anchors.bottom: leftHoverContainer.bottom\r
- color: "white"\r
- opacity: 0.2\r
- visible: accountBtnMouseArea.containsMouse\r
- }\r
- Rectangle {\r
- width: Style.currentAccountButtonWidth / 2\r
- height: Style.trayWindowHeaderHeight / 2\r
- anchors.right: leftHoverContainer.right\r
- color: "white"\r
- opacity: 0.2\r
- visible: accountBtnMouseArea.containsMouse\r
- }\r
- Rectangle {\r
- width: Style.currentAccountButtonWidth / 2\r
- height: Style.trayWindowHeaderHeight / 2\r
- anchors.right: leftHoverContainer.right\r
- anchors.bottom: leftHoverContainer.bottom\r
- color: "white"\r
- opacity: 0.2\r
- visible: accountBtnMouseArea.containsMouse\r
- }\r
+ background: Rectangle {\r
+ color: accountBtnMouseArea.containsMouse ? "white" : "transparent"\r
+ opacity: 0.2\r
}\r
\r
RowLayout {\r