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

This commit is contained in:
Sander Ferdinand 2017-12-11 00:31:52 +01:00 committed by moneromooo-monero
parent 5a36aa7fce
commit e339034082
5 changed files with 12 additions and 12 deletions

View File

@ -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

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

View File

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