diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2017-12-11 00:31:52 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-29 23:04:02 +0100 |
| commit | e3390340821e0a367559f7a45408cec7771ef6d1 (patch) | |
| tree | 6bd273dc5f7dac5ca560be3649114f12abe23d9e /components/MenuButton.qml | |
| parent | 5a36aa7fce21a72328f2d615e6cb339e4c51a755 (diff) | |
| download | monzero-gui-e3390340821e0a367559f7a45408cec7771ef6d1.tar.gz monzero-gui-e3390340821e0a367559f7a45408cec7771ef6d1.tar.xz monzero-gui-e3390340821e0a367559f7a45408cec7771ef6d1.zip | |
Added better gradient for MenuButton, implemented 'arrow.png' for checked menu buttons and replaced leftPanel background gradient
Diffstat (limited to 'components/MenuButton.qml')
| -rw-r--r-- | components/MenuButton.qml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/components/MenuButton.qml b/components/MenuButton.qml index f3ba56f6..ef6da091 100644 --- a/components/MenuButton.qml +++ b/components/MenuButton.qml @@ -84,19 +84,17 @@ Rectangle { Rectangle { id: dot anchors.centerIn: parent - width: 8 * scaleRatio - height: 8 * scaleRatio - radius: 4 * scaleRatio + width: button.checked ? 20 * scaleRatio : 8 * scaleRatio + height: button.checked ? 20 * scaleRatio : 8 * scaleRatio + radius: button.checked ? 20 * scaleRatio : 4 * scaleRatio color: button.dotColor - visible: !button.checked - } - - // arrow if checked - Image { - anchors.centerIn: parent - anchors.left: parent.left - source: "../images/menuArrow.png" - visible: button.checked + // arrow if checked + Image { + anchors.centerIn: parent + anchors.left: parent.left + source: "../images/arrow-right-medium-white.png" + visible: button.checked + } } // button text @@ -135,6 +133,7 @@ Rectangle { id: buttonArea anchors.fill: parent hoverEnabled: true + cursorShape: Qt.PointingHandCursor onClicked: { if(parent.checked) return |
