bar-kblayout: proper tooltip with full layout name and cycle on click

This commit is contained in:
Lemmy
2026-01-21 22:51:22 -05:00
parent 291062ca63
commit 89913688b5
8 changed files with 43 additions and 4 deletions
@@ -10,11 +10,13 @@ import qs.Services.UI
Singleton {
id: root
property string currentLayout: I18n.tr("common.unknown")
property string fullLayoutName: I18n.tr("common.unknown")
property string previousLayout: ""
property bool isInitialized: false
// Updates current layout from various format strings. Called by compositors
function setCurrentLayout(layoutString) {
root.fullLayoutName = layoutString || I18n.tr("common.unknown");
root.currentLayout = extractLayoutCode(layoutString);
}