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