From 3da2b466d7a096572f83c31e557bc4036dd6f43c Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Wed, 25 Feb 2026 18:05:43 +0100 Subject: [PATCH] fix: radiobuttons & checkboxes --- src/qml/views/GenerateConfigView.qml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/qml/views/GenerateConfigView.qml b/src/qml/views/GenerateConfigView.qml index 15ac540..cc14246 100644 --- a/src/qml/views/GenerateConfigView.qml +++ b/src/qml/views/GenerateConfigView.qml @@ -142,12 +142,9 @@ ColumnLayout { CheckBox { id: noPublicIpCheckBox - contentItem: LogosText { - text: qsTr("No public IP check") - font.pixelSize: Theme.typography.secondaryText - verticalAlignment: Text.AlignVCenter - leftPadding: noPublicIpCheckBox.indicator.width + noPublicIpCheckBox.spacing - } + text: qsTr("No public IP check") + font.pixelSize: Theme.typography.secondaryText + palette.windowText: Theme.palette.text } // Deployment @@ -159,13 +156,17 @@ ColumnLayout { RowLayout { Layout.fillWidth: true spacing: Theme.spacing.medium - LogosRadioButton { + RadioButton { id: devnetRadio + font.pixelSize: Theme.typography.secondaryText + palette.windowText: Theme.palette.text checked: true text: qsTr("Devnet") } - LogosRadioButton { + RadioButton { id: customRadio + font.pixelSize: Theme.typography.secondaryText + palette.windowText: Theme.palette.text text: qsTr("Custom config") } LogosTextField { @@ -224,15 +225,5 @@ ColumnLayout { if (urlStr.length > 0) outputField.text = urlStr + "/user_config.yaml" } - } - - component LogosRadioButton: RadioButton { - id: customRadio - contentItem: LogosText { - text: customRadio.text - font.pixelSize: Theme.typography.secondaryText - verticalAlignment: Text.AlignVCenter - leftPadding: noPublicIpCheckBox.indicator.width + noPublicIpCheckBox.spacing - } } }