1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

lock/greeter: fix font alignment

fixes #1018
This commit is contained in:
bbedward
2025-12-14 11:13:48 -05:00
parent 5e2a418485
commit fb75f4c68b
2 changed files with 236 additions and 258 deletions

View File

@@ -212,10 +212,12 @@ Item {
color: "transparent"
Item {
anchors.centerIn: parent
anchors.verticalCenterOffset: -100
id: clockContainer
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.verticalCenter
anchors.bottomMargin: 60
width: parent.width
height: 140
height: clockText.implicitHeight
visible: SettingsData.lockScreenShowTime
Row {
@@ -330,8 +332,10 @@ Item {
}
StyledText {
anchors.centerIn: parent
anchors.verticalCenterOffset: -25
id: dateText
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: clockContainer.bottom
anchors.topMargin: 4
visible: SettingsData.lockScreenShowDate
text: {
if (SettingsData.lockDateFormat && SettingsData.lockDateFormat.length > 0) {
@@ -346,8 +350,9 @@ Item {
ColumnLayout {
id: passwordLayout
anchors.centerIn: parent
anchors.verticalCenterOffset: 50
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: dateText.visible ? dateText.bottom : clockContainer.bottom
anchors.topMargin: Theme.spacingL
spacing: Theme.spacingM
width: 380
@@ -384,7 +389,6 @@ Item {
border.width: passwordField.activeFocus ? 2 : 1
visible: SettingsData.lockScreenShowPasswordField || root.passwordBuffer.length > 0
Item {
id: lockIconContainer
anchors.left: parent.left