Move the login username above the password field and reformat the date

This commit is contained in:
SirBlob committed 2026-09-27 01:29:15 +00:00
1 parent 6a49d5e0cb
commit 7e747d18bf
1 file changed
+6 -5
+6 -5
View File
@@ -127,7 +127,7 @@ Rectangle {
Column { Column {
id: clockColumn id: clockColumn
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: inputField.top anchors.bottom: usernameLabel.visible ? usernameLabel.top : inputField.top
anchors.bottomMargin: root.sectionGap anchors.bottomMargin: root.sectionGap
Text { Text {
@@ -140,7 +140,7 @@ Rectangle {
Text { Text {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
text: Qt.formatDate(clock.now, "dddd, d MMMM") text: Qt.formatDate(clock.now, "dddd, MMMM d")
color: root.placeholderColor color: root.placeholderColor
font.family: root.fontFamily font.family: root.fontFamily
font.pixelSize: root.dateFontSize font.pixelSize: root.dateFontSize
@@ -206,14 +206,15 @@ Rectangle {
} }
Text { Text {
id: usernameLabel
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.top: inputField.bottom anchors.bottom: inputField.top
anchors.topMargin: 20 anchors.bottomMargin: 16
visible: !root.enteringUsername visible: !root.enteringUsername
text: root.username text: root.username
color: userArea.containsMouse ? root.textColor : root.placeholderColor color: userArea.containsMouse ? root.textColor : root.placeholderColor
font.family: root.fontFamily font.family: root.fontFamily
font.pixelSize: root.smallFontSize font.pixelSize: root.fieldFontSize
MouseArea { MouseArea {
id: userArea id: userArea