mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:36:47 +02:00
Handle no icon in modal dialogs
This commit is contained in:
parent
ba1e8db34a
commit
d893b2e3b1
1 changed files with 2 additions and 2 deletions
|
@ -47,12 +47,12 @@ Frame {
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
width: title.width + (window.iconText !== "" ? icon.width + hifi.dimensions.contentSpacing.x : 0)
|
width: title.width + (icon.text !== "" ? icon.width + hifi.dimensions.contentSpacing.x : 0)
|
||||||
x: (parent.width - width) / 2
|
x: (parent.width - width) / 2
|
||||||
|
|
||||||
FontAwesome {
|
FontAwesome {
|
||||||
id: icon
|
id: icon
|
||||||
text: window.iconText
|
text: window.iconText ? window.iconText : ""
|
||||||
size: 30
|
size: 30
|
||||||
color: hifi.colors.lightGrayText
|
color: hifi.colors.lightGrayText
|
||||||
visible: text != ""
|
visible: text != ""
|
||||||
|
|
Loading…
Reference in a new issue