Workspace: fix scaling not applied

This commit is contained in:
quadbyte 2025-08-10 19:34:24 -04:00
parent 8d70b3d737
commit 160962d7af

View file

@ -12,20 +12,19 @@ Item {
property bool isDestroying: false
property bool hovered: false
readonly property real scaling: Scaling.scale(screen)
signal workspaceChanged(int workspaceId, color accentColor)
// Unified scale
readonly property real s: Scaling.scale(screen)
property ListModel localWorkspaces: ListModel {}
property real masterProgress: 0.0
property bool effectsActive: false
property color effectColor: Colors.accentPrimary
// Unified scale
property real s: scale
property int horizontalPadding: Math.round(16 * s)
property int spacingBetweenPills: Math.round(8 * s)
signal workspaceChanged(int workspaceId, color accentColor)
width: {
let total = 0
for (var i = 0; i < localWorkspaces.count; i++) {