mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 03:48:44 +02:00
add spacing above and below tooltipPic
This commit is contained in:
parent
62b3ca936f
commit
f93ad34282
1 changed files with 16 additions and 4 deletions
|
@ -22,7 +22,7 @@ Hifi.Tooltip {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: border
|
id: border
|
||||||
color: "#7f000000"
|
color: "#7f000000"
|
||||||
width: 322
|
width: 330
|
||||||
height: col.height + hifi.layout.spacing * 2
|
height: col.height + hifi.layout.spacing * 2
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
@ -40,6 +40,7 @@ Hifi.Tooltip {
|
||||||
color: "white"
|
color: "white"
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pixelSize: hifi.fonts.pixelSize * 2
|
font.pixelSize: hifi.fonts.pixelSize * 2
|
||||||
text: root.title
|
text: root.title
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
|
@ -61,6 +62,12 @@ Hifi.Tooltip {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: firstSpacer
|
||||||
|
width: col.width
|
||||||
|
height: 5
|
||||||
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: tooltipPic
|
id: tooltipPic
|
||||||
source: root.imageURL
|
source: root.imageURL
|
||||||
|
@ -68,7 +75,12 @@ Hifi.Tooltip {
|
||||||
width: 320
|
width: 320
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
verticalAlignment: Image.AlignVCenter
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: secondSpacer
|
||||||
|
width: col.width
|
||||||
|
height: 5
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -78,8 +90,8 @@ Hifi.Tooltip {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: root.description
|
text: root.description
|
||||||
font.pixelSize: hifi.fonts.pixelSize
|
font.pixelSize: 16
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue