mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +02:00
More layout changes
This commit is contained in:
parent
1a6acdc5b7
commit
210a1205a7
1 changed files with 14 additions and 9 deletions
|
@ -12,25 +12,28 @@ Hifi.Tooltip {
|
||||||
implicitWidth: border.implicitWidth
|
implicitWidth: border.implicitWidth
|
||||||
implicitHeight: border.implicitHeight
|
implicitHeight: border.implicitHeight
|
||||||
|
|
||||||
|
/*
|
||||||
Border {
|
Border {
|
||||||
id: border
|
id: border
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
implicitWidth: tooltipBackground.implicitWidth
|
implicitWidth: tooltipBackground.implicitWidth
|
||||||
//implicitHeight: Math.max(text.implicitHeight, 64)
|
//implicitHeight: Math.max(text.implicitHeight, 64)
|
||||||
implicitHeight: tooltipBackground.implicitHeight
|
implicitHeight: tooltipBackground.implicitHeight*/
|
||||||
|
|
||||||
Original.Image {
|
Original.Rectangle {
|
||||||
id: tooltipBackground
|
id: border
|
||||||
source: "../images/tooltip_container.svg"
|
color: "#7f000000"
|
||||||
width: 323
|
implicitWidth: 322
|
||||||
height: 423
|
implicitHeight: col.height + hifi.layout.spacing * 2
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
id: col
|
||||||
spacing: 5
|
spacing: 5
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: textPlace
|
id: textPlace
|
||||||
|
color: "#ffffff"
|
||||||
|
width: border.implicitWidth
|
||||||
//anchors.fill: parent
|
//anchors.fill: parent
|
||||||
anchors.margins: 5
|
anchors.margins: 5
|
||||||
font.pixelSize: hifi.fonts.pixelSize / 2
|
font.pixelSize: hifi.fonts.pixelSize / 2
|
||||||
|
@ -49,6 +52,8 @@ Hifi.Tooltip {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: textDescription
|
id: textDescription
|
||||||
|
color: "#ffffff"
|
||||||
|
width: border.implicitWidth
|
||||||
//anchors.fill: parent
|
//anchors.fill: parent
|
||||||
anchors.margins: 5
|
anchors.margins: 5
|
||||||
font.pixelSize: hifi.fonts.pixelSize / 2
|
font.pixelSize: hifi.fonts.pixelSize / 2
|
||||||
|
@ -58,5 +63,5 @@ Hifi.Tooltip {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
Loading…
Reference in a new issue