feat(ncheckbox): allow custom labelSize

This commit is contained in:
Lemmy
2026-03-12 00:18:03 -04:00
parent 175e85302d
commit 02a3d74c24
3 changed files with 16 additions and 1 deletions
+12
View File
@@ -656,6 +656,18 @@
"Settings.data.network.bluetoothRssiPollingEnabled"
]
},
{
"labelKey": "common.auto-connect",
"descriptionKey": null,
"widget": "NCheckbox",
"tab": 16,
"tabLabel": "panels.connections.title",
"subTab": 1,
"subTabLabel": "common.bluetooth",
"visibleWhen": [
"Settings.data.network.bluetoothAutoConnect"
]
},
{
"labelKey": "toast.airplane-mode.title",
"descriptionKey": null,
+2
View File
@@ -14,6 +14,7 @@ RowLayout {
property color activeColor: Color.mPrimary
property color activeOnColor: Color.mOnPrimary
property int baseSize: Style.baseWidgetSize * 0.7
property real labelSize: Style.fontSizeL
signal toggled(bool checked)
signal entered
@@ -24,6 +25,7 @@ RowLayout {
NLabel {
label: root.label
labelSize: root.labelSize
description: root.description
visible: root.label !== "" || root.description !== ""
}
+2 -1
View File
@@ -14,6 +14,7 @@ ColumnLayout {
property color iconColor: Color.mOnSurface
property bool showIndicator: false
property string indicatorTooltip: ""
property real labelSize: Style.fontSizeL
opacity: enabled ? 1.0 : 0.6
spacing: Style.marginXXS
@@ -38,7 +39,7 @@ ColumnLayout {
id: labelText
Layout.fillWidth: true
text: root.label
pointSize: Style.fontSizeL
pointSize: root.labelSize
font.weight: Style.fontWeightSemiBold
color: labelColor
wrapMode: Text.WordWrap