be sure to H align the text if our icon is valid in a Button
This commit is contained in:
parent
2560636dba
commit
d5bf439e5b
@ -250,7 +250,7 @@ Item {
|
|||||||
font.weight: theme.defaultFont.weight
|
font.weight: theme.defaultFont.weight
|
||||||
font.wordSpacing: theme.defaultFont.wordSpacing
|
font.wordSpacing: theme.defaultFont.wordSpacing
|
||||||
color: theme.buttonTextColor
|
color: theme.buttonTextColor
|
||||||
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
horizontalAlignment: icon.valid ? Text.AlignHCenter : Text.AlignLeft
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user