From 4510c153dce5ee8e93c1518eda8841a249fb500d Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Wed, 6 May 2026 14:01:39 +0200 Subject: [PATCH] chore(widgets): adjust workspace sizing --- src/shell/bar/widgets/workspaces_widget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell/bar/widgets/workspaces_widget.cpp b/src/shell/bar/widgets/workspaces_widget.cpp index cf7928e2d..979ab6272 100644 --- a/src/shell/bar/widgets/workspaces_widget.cpp +++ b/src/shell/bar/widgets/workspaces_widget.cpp @@ -20,10 +20,10 @@ namespace { constexpr Logger kLog("workspace"); - constexpr float kWorkspaceGap = Style::spaceSm; + constexpr float kWorkspaceGap = Style::spaceXs; constexpr float kWorkspacePillMinWidth = Style::controlHeight + Style::spaceXs; constexpr float kWorkspaceLabelPadH = Style::spaceSm; - constexpr float kWorkspacePillMinHeight = Style::fontSizeCaption; + constexpr float kWorkspacePillMinHeight = Style::fontSizeMini - Style::spaceXs; constexpr float kWorkspaceAnimDurationMs = static_cast(Style::animNormal); } // namespace @@ -121,7 +121,7 @@ void WorkspacesWidget::rebuild(Renderer& renderer) { const auto& workspaces = m_cachedState; const float gap = kWorkspaceGap * m_contentScale; const float pillMin = kWorkspacePillMinWidth * m_contentScale; - const float labelFontSize = Style::fontSizeCaption * m_contentScale; + const float labelFontSize = Style::fontSizeMini * m_contentScale; // Workspace pills are decorative indicators, so keep their body closer to // caption text than to the full bar capsule height used by regular widgets. const auto labelRefMetrics = renderer.measureFont(labelFontSize, true);