mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
hyprlandxkbindicator: don't reference the button out of nowhere
This commit is contained in:
@@ -293,6 +293,7 @@ Item { // Bar content region
|
||||
HyprlandXkbIndicator {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.rightMargin: indicatorsRowLayout.realSpacing
|
||||
color: rightSidebarButton.colText
|
||||
}
|
||||
MaterialSymbol {
|
||||
Layout.rightMargin: indicatorsRowLayout.realSpacing
|
||||
|
||||
@@ -6,6 +6,7 @@ import qs.modules.common.widgets
|
||||
Loader {
|
||||
id: root
|
||||
property bool vertical: false
|
||||
property color color: Appearance.colors.colOnSurfaceVariant
|
||||
active: HyprlandXkb.layoutCodes.length > 1
|
||||
visible: active
|
||||
|
||||
@@ -26,7 +27,7 @@ Loader {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: abbreviateLayoutCode(HyprlandXkb.currentLayoutCode)
|
||||
font.pixelSize: text.includes("\n") ? Appearance.font.pixelSize.smallie : Appearance.font.pixelSize.small
|
||||
color: rightSidebarButton.colText
|
||||
color: root.color
|
||||
animateChange: true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -271,6 +271,7 @@ Item { // Bar content region
|
||||
vertical: true
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.bottomMargin: indicatorsColumnLayout.realSpacing
|
||||
color: rightSidebarButton.colText
|
||||
}
|
||||
MaterialSymbol {
|
||||
Layout.bottomMargin: indicatorsColumnLayout.realSpacing
|
||||
|
||||
Reference in New Issue
Block a user