bar: layout indicator: more proper layout parsing

This commit is contained in:
end-4
2025-07-23 22:07:34 +07:00
parent ad7fdd1d3f
commit 82fd2334cf
3 changed files with 114 additions and 40 deletions
+8 -5
View File
@@ -416,12 +416,15 @@ Scope {
color: rightSidebarButton.colText
}
}
Label {
Loader {
active: HyprlandXkb.layoutCodes.length > 1
visible: active
Layout.rightMargin: indicatorsRowLayout.realSpacing
text: LayoutService.currentLayout
visible: LayoutService.currentLayout !== ""
font.pixelSize: Appearance.font.pixelSize.larger - 3
color: rightSidebarButton.colText
sourceComponent: StyledText {
text: HyprlandXkb.currentLayoutCode
font.pixelSize: Appearance.font.pixelSize.small
color: rightSidebarButton.colText
}
}
MaterialSymbol {
Layout.rightMargin: indicatorsRowLayout.realSpacing