1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Remove useless rounding

This commit is contained in:
bbedward
2025-10-02 14:14:16 -04:00
parent bd02923616
commit 6140c398f0

View File

@@ -84,8 +84,8 @@ PanelWindow {
id: contentContainer
layer.enabled: true
readonly property real screenWidth: root.screen ? root.screen.width : 1920
readonly property real screenHeight: root.screen ? root.screen.height : 1080
readonly property real screenWidth: root.screen.width
readonly property real screenHeight: root.screen.height
readonly property real gothOffset: SettingsData.dankBarGothCornersEnabled ? Theme.cornerRadius : 0
readonly property real calculatedX: {
if (SettingsData.dankBarPosition === SettingsData.Position.Left) {
@@ -108,8 +108,8 @@ PanelWindow {
}
}
width: Math.round(popupWidth)
height: Math.round(popupHeight)
width: popupWidth
height: popupHeight
x: Math.round(calculatedX)
y: Math.round(calculatedY)
opacity: shouldBeVisible ? 1 : 0
@@ -122,8 +122,6 @@ PanelWindow {
}
}
Loader {
id: contentLoader
anchors.fill: parent