mirror of
https://github.com/logos-blockchain/logos-blockchain-ui.git
synced 2026-04-01 08:53:06 +00:00
fix: fix colors for checboxes and radio buttons
This commit is contained in:
parent
7518727642
commit
a4f8e96d60
@ -78,12 +78,19 @@ ColumnLayout {
|
||||
text: qsTr("Initial peers (one per line)")
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 60
|
||||
clip: true
|
||||
TextArea {
|
||||
id: initialPeersArea
|
||||
background: Rectangle {
|
||||
radius: Theme.spacing.radiusSmall
|
||||
color: Theme.palette.backgroundSecondary
|
||||
border.width: 1
|
||||
border.color: d.inputActiveFocus ? Theme.palette.overlayOrange : Theme.palette.backgroundElevated
|
||||
}
|
||||
placeholderText: qsTr("Peer addresses, one per line")
|
||||
placeholderTextColor: Theme.palette.textTertiary
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
@ -135,7 +142,12 @@ ColumnLayout {
|
||||
|
||||
CheckBox {
|
||||
id: noPublicIpCheckBox
|
||||
text: qsTr("No public IP check")
|
||||
contentItem: LogosText {
|
||||
text: qsTr("No public IP check")
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
leftPadding: noPublicIpCheckBox.indicator.width + noPublicIpCheckBox.spacing
|
||||
}
|
||||
}
|
||||
|
||||
// Deployment
|
||||
@ -147,12 +159,12 @@ ColumnLayout {
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
spacing: Theme.spacing.medium
|
||||
RadioButton {
|
||||
LogosRadioButton {
|
||||
id: devnetRadio
|
||||
checked: true
|
||||
text: qsTr("Devnet")
|
||||
}
|
||||
RadioButton {
|
||||
LogosRadioButton {
|
||||
id: customRadio
|
||||
text: qsTr("Custom config")
|
||||
}
|
||||
@ -213,4 +225,14 @@ ColumnLayout {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user