1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

dankbar: add caps lock indicator widget

This commit is contained in:
bbedward
2025-11-13 22:41:33 -05:00
parent 91da720c26
commit 0490794d6c
6 changed files with 75 additions and 0 deletions

View File

@@ -844,6 +844,7 @@ Item {
"battery": batteryComponent,
"layout": layoutComponent,
"controlCenterButton": controlCenterButtonComponent,
"capsLockIndicator": capsLockIndicatorComponent,
"idleInhibitor": idleInhibitorComponent,
"spacer": spacerComponent,
"separator": separatorComponent,
@@ -884,6 +885,7 @@ Item {
"batteryComponent": batteryComponent,
"layoutComponent": layoutComponent,
"controlCenterButtonComponent": controlCenterButtonComponent,
"capsLockIndicatorComponent": capsLockIndicatorComponent,
"idleInhibitorComponent": idleInhibitorComponent,
"spacerComponent": spacerComponent,
"separatorComponent": separatorComponent,
@@ -1428,6 +1430,16 @@ Item {
}
}
Component {
id: capsLockIndicatorComponent
CapsLockIndicator {
widgetThickness: barWindow.widgetThickness
section: topBarContent.getWidgetSection(parent) || "right"
parentScreen: barWindow.screen
}
}
Component {
id: idleInhibitorComponent