Notification: add scaling

This commit is contained in:
Ly-sec
2025-09-22 13:58:59 +02:00
parent f348eb993c
commit d13793fcbd
+10 -1
View File
@@ -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