From 5b3b2ae2aa84d9939a2c96ed62472f9371da6388 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 7 Nov 2025 14:12:39 -0500 Subject: [PATCH 1/2] SmartPanel: fix dynamic UI scaling --- Modules/MainScreen/SmartPanel.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Modules/MainScreen/SmartPanel.qml b/Modules/MainScreen/SmartPanel.qml index b2be2539..e4bda7a2 100644 --- a/Modules/MainScreen/SmartPanel.qml +++ b/Modules/MainScreen/SmartPanel.qml @@ -106,6 +106,16 @@ Item { signal opened signal closed + Connections { + target: Style + + function onUiScaleRatioChanged() { + if (root.isPanelOpen && root.isPanelVisible) { + root.setPosition() + } + } + } + // Panel visibility and sizing visible: isPanelVisible width: parent ? parent.width : 0 From f8cffcd3ac8883042be091f30e8da745605c4a7c Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 7 Nov 2025 14:13:51 -0500 Subject: [PATCH 2/2] ControlCenter: +20 px width --- Modules/Panels/ControlCenter/ControlCenterPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Panels/ControlCenter/ControlCenterPanel.qml b/Modules/Panels/ControlCenter/ControlCenterPanel.qml index 8675b2a2..510d781f 100644 --- a/Modules/Panels/ControlCenter/ControlCenterPanel.qml +++ b/Modules/Panels/ControlCenter/ControlCenterPanel.qml @@ -30,7 +30,7 @@ SmartPanel { panelAnchorBottom: !shouldCenter && controlCenterPosition !== "close_to_bar_button" && controlCenterPosition.startsWith("bottom_") panelAnchorTop: !shouldCenter && controlCenterPosition !== "close_to_bar_button" && controlCenterPosition.startsWith("top_") - preferredWidth: Math.round(440 * Style.uiScaleRatio) + preferredWidth: Math.round(460 * Style.uiScaleRatio) preferredHeight: { var height = 0 var count = 0