fix(modules/bar): WeatherBar pushing middlesection to the left

This commit is contained in:
Hasan A. Tekeoğlu
2025-06-28 08:34:43 +03:00
parent d7cf0f4f27
commit 660af6e018
+11 -9
View File
@@ -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