mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 20:40:27 +00:00
standard-button: remove redundant 'icon' property
This commit is contained in:
parent
f8a920dc38
commit
831dc59013
1 changed files with 1 additions and 9 deletions
|
@ -35,7 +35,6 @@ Item {
|
||||||
id: button
|
id: button
|
||||||
property string rightIcon: ""
|
property string rightIcon: ""
|
||||||
property string rightIconInactive: ""
|
property string rightIconInactive: ""
|
||||||
property string icon: ""
|
|
||||||
property string textColor: button.enabled? MoneroComponents.Style.buttonTextColor: MoneroComponents.Style.buttonTextColorDisabled
|
property string textColor: button.enabled? MoneroComponents.Style.buttonTextColor: MoneroComponents.Style.buttonTextColorDisabled
|
||||||
property string textAlign: rightIcon !== "" ? "left" : "center"
|
property string textAlign: rightIcon !== "" ? "left" : "center"
|
||||||
property bool small: false
|
property bool small: false
|
||||||
|
@ -109,15 +108,8 @@ Item {
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize
|
font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize
|
||||||
color: button.textColor
|
color: button.textColor
|
||||||
visible: button.icon === ""
|
visible: text !== ""
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
|
|
||||||
visible: button.icon !== ""
|
|
||||||
source: button.icon
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
visible: button.rightIcon !== ""
|
visible: button.rightIcon !== ""
|
||||||
|
|
Loading…
Reference in a new issue