From d13793fcbde487a481c7b80c30bea22ba1223f24 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Mon, 22 Sep 2025 13:58:59 +0200 Subject: [PATCH] Notification: add scaling --- Modules/Notification/Notification.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 2257b027..76874196 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -16,7 +16,7 @@ Variants { id: root required property ShellScreen modelData - readonly property real scaling: ScalingService.getScreenScale(modelData) + property real scaling: ScalingService.getScreenScale(modelData) // Access the notification model from the service - UPDATED NAME property ListModel notificationModel: NotificationService.activeList @@ -26,6 +26,15 @@ Variants { visible: (notificationModel.count > 0) + Connections { + target: ScalingService + function onScaleChanged(screenName, scale) { + if (root.modelData && screenName === root.modelData.name) { + root.scaling = scale + } + } + } + sourceComponent: PanelWindow { screen: modelData color: Color.transparent