forked from Shinonome/dots-hyprland
bar: weather: fix popup position for bottom bar
This commit is contained in:
@@ -46,9 +46,11 @@ MouseArea {
|
|||||||
implicitWidth: weatherPopup.implicitWidth
|
implicitWidth: weatherPopup.implicitWidth
|
||||||
implicitHeight: weatherPopup.implicitHeight
|
implicitHeight: weatherPopup.implicitHeight
|
||||||
anchor.item: root
|
anchor.item: root
|
||||||
anchor.edges: Edges.Bottom
|
anchor.edges: Edges.Top
|
||||||
anchor.rect.x: (root.implicitWidth - popupWindow.implicitWidth) / 2
|
anchor.rect.x: (root.implicitWidth - popupWindow.implicitWidth) / 2
|
||||||
anchor.rect.y: root.implicitHeight + 10
|
anchor.rect.y: Config.options.bar.bottom ?
|
||||||
|
(-weatherPopup.implicitHeight - 15) :
|
||||||
|
(root.implicitHeight + 15 )
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
WeatherPopup {
|
WeatherPopup {
|
||||||
id: weatherPopup
|
id: weatherPopup
|
||||||
|
|||||||
Reference in New Issue
Block a user