mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(ncheckbox): allow custom labelSize
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user