Fix sizing

This commit is contained in:
David Heinemeier Hansson
2026-02-21 14:16:27 +01:00
parent 20be495889
commit 21e33b5cd7
+10 -10
View File
@@ -23,12 +23,12 @@ Rectangle {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 30 spacing: root.height * 0.04
width: parent.width width: parent.width
Image { Image {
source: "logo.svg" source: "logo.svg"
width: 500 width: root.width * 0.35
height: Math.round(width * sourceSize.height / sourceSize.width) height: Math.round(width * sourceSize.height / sourceSize.width)
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
@@ -36,19 +36,19 @@ Rectangle {
Row { Row {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 10 spacing: root.width * 0.007
Text { Text {
text: "\uf023" text: "\uf023"
color: "#ffffff" color: "#ffffff"
font.family: "JetBrainsMono NF" font.family: "JetBrainsMono NF"
font.pixelSize: 16 font.pixelSize: root.height * 0.025
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Rectangle { Rectangle {
width: 250 width: root.width * 0.17
height: 32 height: root.height * 0.04
color: "#000000" color: "#000000"
border.color: "#ffffff" border.color: "#ffffff"
border.width: 1 border.width: 1
@@ -56,12 +56,12 @@ Rectangle {
TextInput { TextInput {
id: password id: password
anchors.fill: parent anchors.fill: parent
anchors.margins: 6 anchors.margins: root.height * 0.008
verticalAlignment: TextInput.AlignVCenter verticalAlignment: TextInput.AlignVCenter
echoMode: TextInput.Password echoMode: TextInput.Password
font.family: "JetBrainsMono NF" font.family: "JetBrainsMono NF"
font.pixelSize: 14 font.pixelSize: root.height * 0.02
font.letterSpacing: 3 font.letterSpacing: root.height * 0.004
passwordCharacter: "\u2022" passwordCharacter: "\u2022"
color: "#ffffff" color: "#ffffff"
focus: true focus: true
@@ -81,7 +81,7 @@ Rectangle {
text: "" text: ""
color: "#f7768e" color: "#f7768e"
font.family: "JetBrainsMono NF" font.family: "JetBrainsMono NF"
font.pixelSize: 12 font.pixelSize: root.height * 0.018
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }