diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-12 14:21:21 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-12 14:21:21 +0200 |
| commit | 43af16801fcbb7056a51ed5fd6539c74ff5c0379 (patch) | |
| tree | bbf61e0d0df1cac84c441afaddcb2184dc450181 /accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml | |
| parent | da23e39c353e68fdc7c5839d78945e88352a7f92 (diff) | |
| download | nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.gz nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.bz2 nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.xz nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml b/accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml index bc3750f9..46302e54 100644 --- a/accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml +++ b/accounts/gkleen@sif/shell/quickshell/KeyboardLayout.qml | |||
| @@ -87,18 +87,24 @@ Item { | |||
| 87 | hoverEnabled: true | 87 | hoverEnabled: true |
| 88 | enabled: true | 88 | enabled: true |
| 89 | 89 | ||
| 90 | anchors.centerIn: parent | 90 | anchors.fill: parent |
| 91 | 91 | ||
| 92 | Text { | 92 | Item { |
| 93 | id: kbdTooltipText | 93 | anchors.fill: parent |
| 94 | 94 | ||
| 95 | font.pointSize: 10 | 95 | Text { |
| 96 | font.family: "Fira Sans" | 96 | id: kbdTooltipText |
| 97 | color: "white" | ||
| 98 | 97 | ||
| 99 | text: { | 98 | anchors.centerIn: parent |
| 100 | const currentLayout = NiriService.keyboardLayouts?.names?.[NiriService.keyboardLayouts.current_idx]; | 99 | |
| 101 | return currentLayout || ""; | 100 | font.pointSize: 10 |
| 101 | font.family: "Fira Sans" | ||
| 102 | color: "white" | ||
| 103 | |||
| 104 | text: { | ||
| 105 | const currentLayout = NiriService.keyboardLayouts?.names?.[NiriService.keyboardLayouts.current_idx]; | ||
| 106 | return currentLayout || ""; | ||
| 107 | } | ||
| 102 | } | 108 | } |
| 103 | } | 109 | } |
| 104 | } | 110 | } |
