diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-03-02 12:40:36 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-03-02 12:40:36 +0100 |
| commit | d9a2b1aa60cb869e77c9a42fd6538d8bb4078704 (patch) | |
| tree | 13a34a972b921d0ba9cdf5151451b3c20f86518e /components | |
| parent | e826f7c1ecdcdc1e588e67b07278f7433cd867eb (diff) | |
| download | monzero-gui-d9a2b1aa60cb869e77c9a42fd6538d8bb4078704.tar.gz monzero-gui-d9a2b1aa60cb869e77c9a42fd6538d8bb4078704.tar.xz monzero-gui-d9a2b1aa60cb869e77c9a42fd6538d8bb4078704.zip | |
fix broken basic button
Diffstat (limited to 'components')
| -rw-r--r-- | components/TitleBar.qml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/components/TitleBar.qml b/components/TitleBar.qml index aa793985..bcbc0e64 100644 --- a/components/TitleBar.qml +++ b/components/TitleBar.qml @@ -41,6 +41,7 @@ Rectangle { y: -height property string title property alias maximizeButtonVisible: maximizeButton.visible + z: 1 Text { anchors.centerIn: parent @@ -52,28 +53,26 @@ Rectangle { visible: customDecorations } - Behavior on y { - NumberAnimation { duration: 100; easing.type: Easing.InQuad } - } - Rectangle { id: goToBasicVersionButton property bool containsMouse: titleBar.mouseX >= x && titleBar.mouseX <= x + width property bool checked: false anchors.top: parent.top anchors.left: parent.left - color: containsMouse || checked ? "#FFE00A" : "#000000" + color: basicMouseArea.containsMouse || checked ? "#FFE00A" : "#000000" height: 30 width: height Image { anchors.centerIn: parent rotation: parent.checked ? 180 : 0 - source: parent.containsMouse || parent.checked ? "../images/goToBasicVersionHovered.png" : + source: parent.customDecorations || parent.checked ? "../images/goToBasicVersionHovered.png" : "../images/gotoBasicVersion.png" } MouseArea { + id: basicMouseArea + hoverEnabled: true anchors.fill: parent onClicked: { parent.checked = !parent.checked |
