mobile layout tweaks

This commit is contained in:
Jaquee
2017-11-02 19:51:53 +01:00
parent bfafd7b279
commit 4775a5b74d
5 changed files with 10 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ Item {
Layout.columnSpan: 2
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 24 * scaleRatio
font.pixelSize: 18 * scaleRatio
font.family: "Arial"
color: "#555555"
}
@@ -165,7 +165,7 @@ Item {
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
text: qsTr("Ok")
text: qsTr("Continue")
KeyNavigation.tab: cancelButton
onClicked: {
root.close()

View File

@@ -43,7 +43,7 @@ Item {
signal clicked()
// Dynamic label width
Layout.minimumWidth: (label.contentWidth + 10 * scaleRatio) // (label.contentWidth > 80)? label.contentWidth + 20 : 100
Layout.minimumWidth: (label.contentWidth > 50)? label.contentWidth + 10 : 60
function doClick() {
// Android workaround

View File

@@ -97,7 +97,7 @@ Rectangle {
Label {
id: dialogTitle
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 32 * scaleRatio
font.pixelSize: 18 * scaleRatio
font.family: "Arial"
color: "#555555"
}
@@ -114,6 +114,7 @@ Rectangle {
readOnly: true
font.pixelSize: 12 * scaleRatio
selectByMouse: false
wrapMode: TextEdit.Wrap
MouseArea {
anchors.fill: parent
@@ -156,7 +157,7 @@ Rectangle {
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
text: qsTr("Ok")
text: qsTr("OK")
KeyNavigation.tab: cancelButton
onClicked: {
root.close()