mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-01 22:57:25 -04:00
fixes
This commit is contained in:
@@ -2,7 +2,8 @@ import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
height: 37
|
||||
property string shadowColor
|
||||
property string shadowPressedColor
|
||||
property string shadowReleasedColor
|
||||
property string pressedColor
|
||||
property string releasedColor
|
||||
property string icon: ""
|
||||
@@ -14,16 +15,16 @@ Item {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: parent.height - 1
|
||||
y: buttonArea.pressed ? 1 : 0
|
||||
y: buttonArea.pressed ? 0 : 1
|
||||
radius: 4
|
||||
color: parent.shadowColor
|
||||
color: buttonArea.pressed ? parent.shadowPressedColor : parent.shadowReleasedColor
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: parent.height - 1
|
||||
y: buttonArea.pressed ? 0 : 1
|
||||
y: buttonArea.pressed ? 1 : 0
|
||||
color: buttonArea.pressed ? parent.pressedColor : parent.releasedColor
|
||||
radius: 4
|
||||
}
|
||||
@@ -35,6 +36,9 @@ Item {
|
||||
anchors.right: parent.right
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
elide: Text.ElideRight
|
||||
font.family: "Arial"
|
||||
font.bold: true
|
||||
font.letterSpacing: -1
|
||||
font.pixelSize: 12
|
||||
color: parent.textColor
|
||||
visible: parent.icon === ""
|
||||
|
||||
Reference in New Issue
Block a user