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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user