Skip to content

Commit

Permalink
standard-button: remove redundant 'icon' property monero-gui/monero-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiphon authored and stoffu committed Feb 24, 2022
1 parent 635c8c2 commit d233dfb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions components/StandardButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Item {
id: button
property string rightIcon: ""
property string rightIconInactive: ""
property string icon: ""
property string textColor: button.enabled? MoneroComponents.Style.buttonTextColor: MoneroComponents.Style.buttonTextColorDisabled
property string textAlign: rightIcon !== "" ? "left" : "center"
property bool small: false
Expand Down Expand Up @@ -109,15 +108,8 @@ Item {
font.bold: true
font.pixelSize: buttonArea.pressed ? button.fontSize - 1 : button.fontSize
color: button.textColor
visible: button.icon === ""
visible: text !== ""
}

Image {
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
visible: button.icon !== ""
source: button.icon
}


Image {
visible: button.rightIcon !== ""
Expand Down

0 comments on commit d233dfb

Please sign in to comment.