Skip to content

Commit

Permalink
Merge pull request #29 from Undef-a/wip/undef/fix-sizing-with-3.3.x
Browse files Browse the repository at this point in the history
mobile: Adjust all sizes for Calamares 3.3.x
  • Loading branch information
adriaandegroot authored Sep 28, 2023
2 parents dc3550e + 3ad9c22 commit edb405a
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 73 deletions.
12 changes: 6 additions & 6 deletions modules/mobile/fde_confirm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Item {
id: mainText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 30
anchors.topMargin: 10
wrapMode: Text.WordWrap

text: "To protect your data in case your device gets stolen," +
Expand All @@ -33,15 +33,15 @@ Item {
" boot your device or access any data on it. Make sure that" +
" you don't lose this password!"

width: 500
width: 200
}

Button {
id: firstButton
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: mainText.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Enable")
onClicked: {
Expand All @@ -53,8 +53,8 @@ Item {
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: firstButton.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Disable")
onClicked: {
Expand Down
14 changes: 7 additions & 7 deletions modules/mobile/fde_pass.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Item {

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
width: 200
}

TextField {
Expand All @@ -49,8 +49,8 @@ Item {
text: config.fdePassword

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
anchors.topMargin: 10
width: 200
}

Text {
Expand All @@ -59,15 +59,15 @@ Item {
visible: false

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
anchors.topMargin: 10
width: 200
wrapMode: Text.WordWrap
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: errorText.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Continue")
onClicked: {
Expand Down
14 changes: 7 additions & 7 deletions modules/mobile/fs_selection.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ Item {
id: mainText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 30
anchors.topMargin: 10
wrapMode: Text.WordWrap

text: "Select the filesystem for root partition. If unsure, leave the default."

width: 500
width: 200
}

ComboBox {
id: fsTypeCB
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: mainText.bottom
anchors.topMargin: 40
width: 500
height: 60
anchors.topMargin: 10
width: 150
height: 30
editable: false
model: config.fsList
/* Save the current state on selection so it is there when the back button is pressed */
Expand All @@ -47,8 +47,8 @@ Item {
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: fsTypeCB.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Continue")
onClicked: {
Expand Down
8 changes: 4 additions & 4 deletions modules/mobile/install_confirm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Item {
id: mainText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 25
anchors.topMargin: 10
wrapMode: Text.WordWrap

text: (function() {
Expand All @@ -44,15 +44,15 @@ Item {
return ret;
}())

width: 550
width: 200
}

Button {
id: firstButton
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: mainText.bottom
anchors.topMargin: 20
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Install")
onClicked: navFinish()
Expand Down
12 changes: 6 additions & 6 deletions modules/mobile/install_target.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Item {
id: mainText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 30
anchors.topMargin: 10
wrapMode: Text.WordWrap

text: "The installation was started from an external storage medium." +
Expand All @@ -32,15 +32,15 @@ Item {
"<br>" +
"Where would you like to install " + config.osName + "?"

width: 500
width: 200
}

Button {
id: firstButton
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: mainText.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Internal (eMMC)")
onClicked: {
Expand All @@ -52,8 +52,8 @@ Item {
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: firstButton.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("External (SD card)")
onClicked: {
Expand Down
12 changes: 6 additions & 6 deletions modules/mobile/install_target_confirm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ Item {
id: mainText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 30
anchors.topMargin: 10
wrapMode: Text.WordWrap

text: "Are you sure that you want to overwrite the internal storage?" +
"<br><br>" +
"<b>All existing data on the device will be lost!</b>"
width: 500
width: 200
}

Button {
id: firstButton
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: mainText.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("Yes")
onClicked: {
Expand All @@ -47,8 +47,8 @@ Item {
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: firstButton.bottom
anchors.topMargin: 40
width: 500
anchors.topMargin: 10
width: 200

text: qsTr("No")
onClicked: {
Expand Down
8 changes: 4 additions & 4 deletions modules/mobile/mobile.qml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Page
Rectangle {
id: mobileNavigation
width: parent.width
height: 60
height: 30
color: "#e6e4e1"
Layout.fillWidth: true

Expand All @@ -98,8 +98,8 @@ Page
text: "<"

background: Rectangle {
implicitWidth: 32
implicitHeight: 30
implicitWidth: 10
implicitHeight: 7
border.color: "#c1bab5"
border.width: 1
radius: 4
Expand All @@ -109,7 +109,7 @@ Page
onClicked: navBack()
}
Rectangle {
implicitHeight: 30
implicitHeight: 10
Layout.fillWidth: true
color: "#e6e4e1"

Expand Down
6 changes: 3 additions & 3 deletions modules/mobile/ssh_confirm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ Item {
"More information:<br>" +
"https://postmarketos.org/ssh"

width: 500
width: 200
}

Button {
id: firstButton
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: mainText.bottom
anchors.topMargin: 40
width: 500
width: 200

text: qsTr("Enable")
onClicked: {
Expand All @@ -57,7 +57,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: firstButton.bottom
anchors.topMargin: 40
width: 500
width: 200

text: qsTr("Disable")
onClicked: {
Expand Down
12 changes: 6 additions & 6 deletions modules/mobile/ssh_credentials.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Item {

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
width: 200
}

Text {
Expand All @@ -45,7 +45,7 @@ Item {

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
width: 200
}

TextField {
Expand All @@ -59,7 +59,7 @@ Item {

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
width: 200
}

TextField {
Expand All @@ -73,7 +73,7 @@ Item {

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
width: 200
}

Text {
Expand All @@ -84,13 +84,13 @@ Item {

anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 50
width: 500
width: 200
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: errorTextPassword.bottom
anchors.topMargin: 40
width: 500
width: 200

text: qsTr("Continue")
onClicked: {
Expand Down
Loading

0 comments on commit edb405a

Please sign in to comment.