From 6e7407ebf9b02adadbba063ea48dabe9456c9ed6 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 7 Nov 2025 16:57:19 -0500 Subject: [PATCH] SettingsPanel: rounding coordinates --- Modules/Panels/Settings/SettingsPanel.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Panels/Settings/SettingsPanel.qml b/Modules/Panels/Settings/SettingsPanel.qml index 540a75d2..f1694ab0 100644 --- a/Modules/Panels/Settings/SettingsPanel.qml +++ b/Modules/Panels/Settings/SettingsPanel.qml @@ -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"