forked from Shinonome/dots-hyprland
fix(modules/bar): WeatherBar pushing middlesection to the left
This commit is contained in:
@@ -278,15 +278,17 @@ Scope {
|
|||||||
VerticalBarSeparator {
|
VerticalBarSeparator {
|
||||||
visible: ConfigOptions?.bar.borderless
|
visible: ConfigOptions?.bar.borderless
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Weather
|
// Weather
|
||||||
BarGroup {
|
Loader {
|
||||||
id: weatherGroupContent
|
id: weatherLoader
|
||||||
Layout.fillHeight: true
|
active: ConfigOptions.bar.weather.show
|
||||||
Layout.alignment: Qt.AlignVCenter
|
anchors.left: middleSection.right
|
||||||
WeatherBar {
|
anchors.margins: 10
|
||||||
visible: ConfigOptions.bar.weather.show
|
sourceComponent: BarGroup {
|
||||||
}
|
implicitHeight: barHeight
|
||||||
|
WeatherBar {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -295,7 +297,7 @@ Scope {
|
|||||||
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
implicitHeight: barHeight
|
implicitHeight: barHeight
|
||||||
width: (barRoot.width - middleSection.width) / 2
|
width: (barRoot.width - (barLeftSideMouseArea.width + middleSection.width + weatherLoader.width))
|
||||||
|
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
property real lastScrollX: 0
|
property real lastScrollX: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user