mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
Remove useless rounding
This commit is contained in:
@@ -84,8 +84,8 @@ PanelWindow {
|
|||||||
id: contentContainer
|
id: contentContainer
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
|
|
||||||
readonly property real screenWidth: root.screen ? root.screen.width : 1920
|
readonly property real screenWidth: root.screen.width
|
||||||
readonly property real screenHeight: root.screen ? root.screen.height : 1080
|
readonly property real screenHeight: root.screen.height
|
||||||
readonly property real gothOffset: SettingsData.dankBarGothCornersEnabled ? Theme.cornerRadius : 0
|
readonly property real gothOffset: SettingsData.dankBarGothCornersEnabled ? Theme.cornerRadius : 0
|
||||||
readonly property real calculatedX: {
|
readonly property real calculatedX: {
|
||||||
if (SettingsData.dankBarPosition === SettingsData.Position.Left) {
|
if (SettingsData.dankBarPosition === SettingsData.Position.Left) {
|
||||||
@@ -108,8 +108,8 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
width: Math.round(popupWidth)
|
width: popupWidth
|
||||||
height: Math.round(popupHeight)
|
height: popupHeight
|
||||||
x: Math.round(calculatedX)
|
x: Math.round(calculatedX)
|
||||||
y: Math.round(calculatedY)
|
y: Math.round(calculatedY)
|
||||||
opacity: shouldBeVisible ? 1 : 0
|
opacity: shouldBeVisible ? 1 : 0
|
||||||
@@ -122,8 +122,6 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: contentLoader
|
id: contentLoader
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user