forked from Shinonome/dots-hyprland
screenshot: fix content regions on scaled monitors (#1539)
This commit is contained in:
@@ -499,10 +499,10 @@ ShellRoot {
|
|||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
x: modelData.at[0]
|
x: modelData.at[0] / panelWindow.monitorScale
|
||||||
y: modelData.at[1]
|
y: modelData.at[1] / panelWindow.monitorScale
|
||||||
width: modelData.size[0]
|
width: modelData.size[0] / panelWindow.monitorScale
|
||||||
height: modelData.size[1]
|
height: modelData.size[1] / panelWindow.monitorScale
|
||||||
borderColor: root.imageBorderColor
|
borderColor: root.imageBorderColor
|
||||||
fillColor: targeted ? root.imageFillColor : "transparent"
|
fillColor: targeted ? root.imageFillColor : "transparent"
|
||||||
border.width: targeted ? 4 : 2
|
border.width: targeted ? 4 : 2
|
||||||
|
|||||||
Reference in New Issue
Block a user