1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

lock/greeter: don't elide password field

fixes #593
This commit is contained in:
bbedward
2025-11-01 10:22:27 -04:00
parent 5f22347d7a
commit 9c45d13cbf
2 changed files with 8 additions and 4 deletions

View File

@@ -496,14 +496,16 @@ Item {
if (parent.showPassword) {
return GreeterState.passwordBuffer
}
return "•".repeat(Math.min(GreeterState.passwordBuffer.length, 25))
return "•".repeat(GreeterState.passwordBuffer.length)
}
return GreeterState.usernameInput
}
color: Theme.surfaceText
font.pixelSize: (GreeterState.showPasswordInput && !parent.showPassword) ? Theme.fontSizeLarge : Theme.fontSizeMedium
opacity: (GreeterState.showPasswordInput ? GreeterState.passwordBuffer.length > 0 : GreeterState.usernameInput.length > 0) ? 1 : 0
elide: Text.ElideRight
clip: true
elide: Text.ElideNone
horizontalAlignment: implicitWidth > width ? Text.AlignRight : Text.AlignLeft
Behavior on opacity {
NumberAnimation {

View File

@@ -551,12 +551,14 @@ Item {
if (parent.showPassword) {
return root.passwordBuffer
}
return "•".repeat(Math.min(root.passwordBuffer.length, 25))
return "•".repeat(root.passwordBuffer.length)
}
color: Theme.surfaceText
font.pixelSize: parent.showPassword ? Theme.fontSizeMedium : Theme.fontSizeLarge
opacity: (demoMode || root.passwordBuffer.length > 0) ? 1 : 0
elide: Text.ElideRight
clip: true
elide: Text.ElideNone
horizontalAlignment: implicitWidth > width ? Text.AlignRight : Text.AlignLeft
Behavior on opacity {
NumberAnimation {