From 68a44b6ef7c3814234c5b236ffa5a7fcf2406edd Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Sun, 31 Aug 2025 08:53:01 -0400 Subject: [PATCH] Taskbar: small tweaks for better compliance to codebase --- Modules/Bar/Widgets/Taskbar.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/Bar/Widgets/Taskbar.qml b/Modules/Bar/Widgets/Taskbar.qml index 4308a36..04da2e0 100644 --- a/Modules/Bar/Widgets/Taskbar.qml +++ b/Modules/Bar/Widgets/Taskbar.qml @@ -11,9 +11,10 @@ import qs.Widgets Rectangle { id: root - property ShellScreen modelData - readonly property real scaling: modelData ? ScalingService.scale(modelData) : 1 - readonly property real itemSize: 32 * scaling + property ShellScreen screen + property real scaling: ScalingService.scale(screen) + + readonly property real itemSize: Style.baseWidgetSize * 0.8 * scaling // Always visible when there are toplevels implicitWidth: taskbarRow.width + Style.marginM * scaling * 2 @@ -25,7 +26,7 @@ Rectangle { id: taskbarRow anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter - spacing: Style.marginXS * root.scaling + spacing: Style.marginXXS * root.scaling Repeater { model: ToplevelManager && ToplevelManager.toplevels ? ToplevelManager.toplevels : []