From 7bafa579894a9e7ec6b3c95311970789122895f0 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:26:16 +0700 Subject: [PATCH] radiobutton: fix inaccurate height --- .../quickshell/ii/modules/common/widgets/SelectionDialog.qml | 1 + .../quickshell/ii/modules/common/widgets/StyledRadioButton.qml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml b/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml index 5f9b871a..4dd2382c 100644 --- a/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml +++ b/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml @@ -69,6 +69,7 @@ Item { Layout.fillHeight: true clip: true currentIndex: root.defaultChoice !== undefined ? root.items.indexOf(root.defaultChoice) : -1 + spacing: 6 model: ScriptModel { id: choiceModel diff --git a/.config/quickshell/ii/modules/common/widgets/StyledRadioButton.qml b/.config/quickshell/ii/modules/common/widgets/StyledRadioButton.qml index 79797e5b..a6a63b7b 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledRadioButton.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledRadioButton.qml @@ -10,7 +10,7 @@ import Quickshell.Services.Pipewire RadioButton { id: root - implicitHeight: 40 + implicitHeight: contentItem.implicitHeight + 4 * 2 property string description property color activeColor: Appearance?.colors.colPrimary ?? "#685496" property color inactiveColor: Appearance?.m3colors.m3onSurfaceVariant ?? "#45464F" @@ -20,6 +20,7 @@ RadioButton { indicator: Item{} contentItem: RowLayout { + id: contentItem Layout.fillWidth: true spacing: 12 Rectangle {