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

evdev: add evdev monitor for caps lock state

This commit is contained in:
bbedward
2025-11-13 22:24:27 -05:00
parent 6465b11e9b
commit 526c4092fd
16 changed files with 1215 additions and 50 deletions

View File

@@ -332,6 +332,7 @@ Item {
}
ColumnLayout {
id: passwordLayout
anchors.centerIn: parent
anchors.verticalCenterOffset: 50
spacing: Theme.spacingM
@@ -740,6 +741,35 @@ Item {
}
}
Row {
anchors.top: passwordLayout.bottom
anchors.topMargin: Theme.spacingS
anchors.horizontalCenter: passwordLayout.horizontalCenter
spacing: 4
opacity: DMSService.capsLockState ? 1 : 0
DankIcon {
name: "shift_lock"
size: 14
color: Theme.error
anchors.verticalCenter: parent.verticalCenter
}
StyledText {
text: "Caps Lock is on"
font.pixelSize: Theme.fontSizeSmall
color: Theme.error
anchors.verticalCenter: parent.verticalCenter
}
Behavior on opacity {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}
}
}
StyledText {
anchors.top: parent.top
anchors.left: parent.left