forked from Shinonome/dots-hyprland
radiobutton: fix inaccurate height
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user