Added better gradient for MenuButton, implemented 'arrow.png' for checked menu buttons and replaced leftPanel background gradient

pull/2/head
Sander Ferdinand 7 years ago committed by moneromooo-monero
parent 5a36aa7fce
commit e339034082

@ -84,19 +84,17 @@ Rectangle {
Rectangle { Rectangle {
id: dot id: dot
anchors.centerIn: parent anchors.centerIn: parent
width: 8 * scaleRatio width: button.checked ? 20 * scaleRatio : 8 * scaleRatio
height: 8 * scaleRatio height: button.checked ? 20 * scaleRatio : 8 * scaleRatio
radius: 4 * scaleRatio radius: button.checked ? 20 * scaleRatio : 4 * scaleRatio
color: button.dotColor color: button.dotColor
visible: !button.checked // arrow if checked
} Image {
anchors.centerIn: parent
// arrow if checked anchors.left: parent.left
Image { source: "../images/arrow-right-medium-white.png"
anchors.centerIn: parent visible: button.checked
anchors.left: parent.left }
source: "../images/menuArrow.png"
visible: button.checked
} }
// button text // button text
@ -135,6 +133,7 @@ Rectangle {
id: buttonArea id: buttonArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: { onClicked: {
if(parent.checked) if(parent.checked)
return return

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 14 KiB

@ -195,5 +195,6 @@
<file>components/LineEditMulti.qml</file> <file>components/LineEditMulti.qml</file>
<file>components/LabelButton.qml</file> <file>components/LabelButton.qml</file>
<file>components/LabelSubheader.qml</file> <file>components/LabelSubheader.qml</file>
<file>images/arrow-right-medium-white.png</file>
</qresource> </qresource>
</RCC> </RCC>