mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
dead pixel workaround: also for bottom edge
This commit is contained in:
parent
d37cf9e9c4
commit
fcdc17dd93
2 changed files with 5 additions and 1 deletions
|
|
@ -77,6 +77,7 @@ Scope {
|
||||||
|
|
||||||
margins {
|
margins {
|
||||||
right: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * -1
|
right: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * -1
|
||||||
|
bottom: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.bottom) * -1
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -85,6 +86,7 @@ Scope {
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
rightMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * 1
|
rightMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * 1
|
||||||
|
bottomMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.bottom) * 1
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -106,7 +108,7 @@ Scope {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
bottom: undefined
|
bottom: undefined
|
||||||
topMargin: (Config?.options.bar.autoHide.enable && !mustShow) ? -Appearance.sizes.barHeight : 0
|
topMargin: (Config?.options.bar.autoHide.enable && !mustShow) ? -Appearance.sizes.barHeight : 0
|
||||||
bottomMargin: 0
|
bottomMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.bottom) * -1
|
||||||
rightMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * -1
|
rightMargin: (Config.options.interactions.deadPixelWorkaround.enable && barRoot.anchors.right) * -1
|
||||||
}
|
}
|
||||||
Behavior on anchors.topMargin {
|
Behavior on anchors.topMargin {
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ Scope {
|
||||||
}
|
}
|
||||||
margins {
|
margins {
|
||||||
right: (Config.options.interactions.deadPixelWorkaround.enable && cornerPanelWindow.anchors.right) * -1
|
right: (Config.options.interactions.deadPixelWorkaround.enable && cornerPanelWindow.anchors.right) * -1
|
||||||
|
bottom: (Config.options.interactions.deadPixelWorkaround.enable && cornerPanelWindow.anchors.bottom) * -1
|
||||||
}
|
}
|
||||||
|
|
||||||
implicitWidth: cornerWidget.implicitWidth
|
implicitWidth: cornerWidget.implicitWidth
|
||||||
|
|
@ -53,6 +54,7 @@ Scope {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
corner: cornerPanelWindow.corner
|
corner: cornerPanelWindow.corner
|
||||||
rightVisualMargin: (Config.options.interactions.deadPixelWorkaround.enable && cornerPanelWindow.anchors.right) * 1
|
rightVisualMargin: (Config.options.interactions.deadPixelWorkaround.enable && cornerPanelWindow.anchors.right) * 1
|
||||||
|
bottomVisualMargin: (Config.options.interactions.deadPixelWorkaround.enable && cornerPanelWindow.anchors.bottom) * 1
|
||||||
|
|
||||||
implicitSize: Appearance.rounding.screenRounding
|
implicitSize: Appearance.rounding.screenRounding
|
||||||
implicitHeight: Math.max(implicitSize, sidebarCornerOpenInteractionLoader.implicitHeight)
|
implicitHeight: Math.max(implicitSize, sidebarCornerOpenInteractionLoader.implicitHeight)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue