forked from Shinonome/dots-hyprland
fix weird osd position when bar autohides
This commit is contained in:
@@ -15,7 +15,6 @@ LazyLoader {
|
|||||||
|
|
||||||
component: PanelWindow {
|
component: PanelWindow {
|
||||||
id: popupWindow
|
id: popupWindow
|
||||||
visible: true
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
anchors.left: true
|
anchors.left: true
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ Scope {
|
|||||||
|
|
||||||
sourceComponent: PanelWindow {
|
sourceComponent: PanelWindow {
|
||||||
id: osdRoot
|
id: osdRoot
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
target: root
|
||||||
@@ -60,11 +61,8 @@ Scope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exclusionMode: ExclusionMode.Normal
|
|
||||||
WlrLayershell.namespace: "quickshell:onScreenDisplay"
|
WlrLayershell.namespace: "quickshell:onScreenDisplay"
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
top: !Config.options.bar.bottom
|
top: !Config.options.bar.bottom
|
||||||
bottom: Config.options.bar.bottom
|
bottom: Config.options.bar.bottom
|
||||||
@@ -73,6 +71,13 @@ Scope {
|
|||||||
item: osdValuesWrapper
|
item: osdValuesWrapper
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
exclusiveZone: 0
|
||||||
|
margins {
|
||||||
|
top: Appearance.sizes.barHeight
|
||||||
|
bottom: Appearance.sizes.barHeight
|
||||||
|
}
|
||||||
|
|
||||||
implicitWidth: columnLayout.implicitWidth
|
implicitWidth: columnLayout.implicitWidth
|
||||||
implicitHeight: columnLayout.implicitHeight
|
implicitHeight: columnLayout.implicitHeight
|
||||||
visible: osdLoader.active
|
visible: osdLoader.active
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ Scope {
|
|||||||
|
|
||||||
sourceComponent: PanelWindow {
|
sourceComponent: PanelWindow {
|
||||||
id: osdRoot
|
id: osdRoot
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
target: root
|
||||||
@@ -72,11 +73,8 @@ Scope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exclusionMode: ExclusionMode.Normal
|
|
||||||
WlrLayershell.namespace: "quickshell:onScreenDisplay"
|
WlrLayershell.namespace: "quickshell:onScreenDisplay"
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
top: !Config.options.bar.bottom
|
top: !Config.options.bar.bottom
|
||||||
bottom: Config.options.bar.bottom
|
bottom: Config.options.bar.bottom
|
||||||
@@ -85,6 +83,13 @@ Scope {
|
|||||||
item: osdValuesWrapper
|
item: osdValuesWrapper
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
exclusiveZone: 0
|
||||||
|
margins {
|
||||||
|
top: Appearance.sizes.barHeight
|
||||||
|
bottom: Appearance.sizes.barHeight
|
||||||
|
}
|
||||||
|
|
||||||
implicitWidth: columnLayout.implicitWidth
|
implicitWidth: columnLayout.implicitWidth
|
||||||
implicitHeight: columnLayout.implicitHeight
|
implicitHeight: columnLayout.implicitHeight
|
||||||
visible: osdLoader.active
|
visible: osdLoader.active
|
||||||
|
|||||||
Reference in New Issue
Block a user