From d6e9e9f2a5f070cfa7269b5c237ce61ba663c379 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 6 Oct 2025 10:09:19 +0200 Subject: [PATCH] less weird no text selection buttons --- .../ii/modules/common/widgets/SelectionGroupButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/SelectionGroupButton.qml b/.config/quickshell/ii/modules/common/widgets/SelectionGroupButton.qml index 178138953..ab7aa1e46 100644 --- a/.config/quickshell/ii/modules/common/widgets/SelectionGroupButton.qml +++ b/.config/quickshell/ii/modules/common/widgets/SelectionGroupButton.qml @@ -23,7 +23,7 @@ GroupButton { colBackgroundActive: Appearance.colors.colSecondaryContainerActive contentItem: RowLayout { - spacing: 4 + spacing: 4 * (root.buttonText?.length > 0) Loader { Layout.alignment: Qt.AlignVCenter @@ -42,7 +42,7 @@ GroupButton { } Item { - implicitWidth: textItem.implicitWidth + implicitWidth: root.buttonText?.length > 0 ? textItem.implicitWidth : 0 implicitHeight: textMetrics.height // Force height to that of regular text TextMetrics {