diff options
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 | } |