fixed text width in blocks
This commit is contained in:
@@ -87,12 +87,28 @@ Window {
|
|||||||
anchors.bottom: button.top
|
anchors.bottom: button.top
|
||||||
anchors.leftMargin: -335
|
anchors.leftMargin: -335
|
||||||
anchors.bottomMargin: -218
|
anchors.bottomMargin: -218
|
||||||
|
rotation: 0
|
||||||
editable: false
|
editable: false
|
||||||
leftPadding: -30
|
|
||||||
|
|
||||||
model: backend.profileNames
|
model: backend.profileNames
|
||||||
|
|
||||||
|
contentItem: Text {
|
||||||
|
id: profileText
|
||||||
|
text: profileBox.displayText
|
||||||
|
font: profileBox.font
|
||||||
|
color: "#ffffff"
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
horizontalAlignment: Text.AlignLeft
|
||||||
|
elide: Text.ElideRight
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: 30
|
||||||
|
anchors.rightMargin: 5
|
||||||
|
anchors.topMargin: 5
|
||||||
|
anchors.bottomMargin: 5
|
||||||
|
}
|
||||||
|
|
||||||
indicator: Image {
|
indicator: Image {
|
||||||
|
id: profileArrow
|
||||||
width: 10; height: 10
|
width: 10; height: 10
|
||||||
visible: true
|
visible: true
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
@@ -106,18 +122,6 @@ Window {
|
|||||||
autoTransform: true
|
autoTransform: true
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Text {
|
|
||||||
x: 26
|
|
||||||
width: 114
|
|
||||||
rightPadding: profileBox.indicator.width + profileBox.spacing
|
|
||||||
text: profileBox.displayText
|
|
||||||
font: profileBox.font
|
|
||||||
color: "#ffffff"
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
elide: Text.ElideRight
|
|
||||||
}
|
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 120; implicitHeight: 40
|
implicitWidth: 120; implicitHeight: 40
|
||||||
color: profileBox.down ? "#91B315" : "#232323"
|
color: profileBox.down ? "#91B315" : "#232323"
|
||||||
@@ -224,13 +228,14 @@ Window {
|
|||||||
height: 42
|
height: 42
|
||||||
anchors.right: button.right
|
anchors.right: button.right
|
||||||
anchors.bottom: button.top
|
anchors.bottom: button.top
|
||||||
|
anchors.rightMargin: 0
|
||||||
anchors.bottomMargin: -218
|
anchors.bottomMargin: -218
|
||||||
editable: false
|
editable: false
|
||||||
leftPadding: -30
|
|
||||||
|
|
||||||
model: backend.versionNames
|
model: backend.versionNames
|
||||||
|
|
||||||
indicator: Image {
|
indicator: Image {
|
||||||
|
id: versionArrow
|
||||||
width: 10; height: 10
|
width: 10; height: 10
|
||||||
visible: true
|
visible: true
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
@@ -245,16 +250,18 @@ Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
x: 26
|
id: versionText
|
||||||
width: 150
|
|
||||||
leftPadding: 56
|
|
||||||
rightPadding: versionBox.indicator.width + versionBox.spacing
|
|
||||||
text: versionBox.displayText
|
text: versionBox.displayText
|
||||||
font: versionBox.font
|
font: versionBox.font
|
||||||
color: "#ffffff"
|
color: "#ffffff"
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: 30
|
||||||
|
anchors.rightMargin: 5
|
||||||
|
anchors.topMargin: 5
|
||||||
|
anchors.bottomMargin: 5
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|||||||
Reference in New Issue
Block a user