mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Added better gradient for MenuButton, implemented 'arrow.png' for checked menu buttons and replaced leftPanel background gradient
This commit is contained in:
parent
5a36aa7fce
commit
e339034082
5 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
BIN
images/arrow-right-medium-white.png
Normal file
BIN
images/arrow-right-medium-white.png
Normal file
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 |
1
qml.qrc
1
qml.qrc
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue