SettingsPanel: rounding coordinates

This commit is contained in:
ItsLemmy
2025-11-07 16:57:19 -05:00
parent e260d631ad
commit 6e7407ebf9
+3 -3
View File
@@ -12,13 +12,13 @@ import qs.Modules.MainScreen
SmartPanel {
id: root
preferredWidth: 820 * Style.uiScaleRatio
preferredHeight: 900 * Style.uiScaleRatio
preferredWidth: Math.round(820 * Style.uiScaleRatio)
preferredHeight: Math.round(900 * Style.uiScaleRatio)
readonly property bool attachToBar: Settings.data.ui.settingsPanelAttachToBar
readonly property string barPosition: Settings.data.bar.position
forceAttachToBar: attachToBar
panelAnchorHorizontalCenter: attachToBar ? (barPosition === "top" || barPosition === "bottom") : true
panelAnchorVerticalCenter: attachToBar ? (barPosition === "left" || barPosition === "right") : true
panelAnchorTop: attachToBar && barPosition === "top"