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

lock/greeter: keyboard accessibility improvements

This commit is contained in:
bbedward
2025-11-09 15:28:21 -05:00
parent b5c49573e5
commit 47c5320d67
3 changed files with 289 additions and 288 deletions

View File

@@ -14,6 +14,21 @@ DankActionButton {
property bool isShift: false
color: Theme.surface
property bool isIcon: text === "keyboard_hide" || text === "Backspace" || text === "Enter"
DankIcon {
anchors.centerIn: parent
name: {
if (parent.text === "keyboard_hide") return "keyboard_hide"
if (parent.text === "Backspace") return "backspace"
if (parent.text === "Enter") return "keyboard_return"
return ""
}
size: 20
color: Theme.surfaceText
visible: parent.isIcon
}
StyledText {
id: contentItem
anchors.centerIn: parent
@@ -21,5 +36,6 @@ DankActionButton {
color: Theme.surfaceText
font.pixelSize: Theme.fontSizeXLarge
font.weight: Font.Normal
visible: !parent.isIcon
}
}