Skip to content

Commit 9d7f0c4

Browse files
committed
internal: format
1 parent 6c1765c commit 9d7f0c4

File tree

74 files changed

+1515
-1397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1515
-1397
lines changed

components/ConnectionHeader.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ ColumnLayout {
2929
font.bold: true
3030
}
3131
}
32-

components/ConnectionInfoSection.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ ColumnLayout {
5757
Layout.maximumWidth: parent.width
5858
}
5959
}
60-

components/PropertyRow.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ ColumnLayout {
2424
font.pointSize: Appearance.font.size.small
2525
}
2626
}
27-

components/SectionContainer.qml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ StyledRect {
1616
implicitHeight: contentColumn.implicitHeight + Appearance.padding.large * 2
1717

1818
radius: Appearance.rounding.normal
19-
color: Colours.transparency.enabled
20-
? Colours.layer(Colours.palette.m3surfaceContainer, 2)
21-
: Colours.palette.m3surfaceContainerHigh
19+
color: Colours.transparency.enabled ? Colours.layer(Colours.palette.m3surfaceContainer, 2) : Colours.palette.m3surfaceContainerHigh
2220

2321
ColumnLayout {
2422
id: contentColumn
@@ -32,4 +30,3 @@ StyledRect {
3230
spacing: root.contentSpacing
3331
}
3432
}
35-

components/SectionHeader.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ ColumnLayout {
2525
color: Colours.palette.m3outline
2626
}
2727
}
28-

components/controls/CollapsibleSection.qml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ ColumnLayout {
8888
id: backgroundRect
8989
anchors.fill: parent
9090
radius: Appearance.rounding.normal
91-
color: Colours.transparency.enabled
92-
? Colours.layer(Colours.palette.m3surfaceContainer, root.nested ? 3 : 2)
93-
: (root.nested ? Colours.palette.m3surfaceContainerHigh : Colours.palette.m3surfaceContainer)
91+
color: Colours.transparency.enabled ? Colours.layer(Colours.palette.m3surfaceContainer, root.nested ? 3 : 2) : (root.nested ? Colours.palette.m3surfaceContainerHigh : Colours.palette.m3surfaceContainer)
9492
opacity: root.showBackground && root.expanded ? 1.0 : 0.0
9593
visible: root.showBackground
9694

@@ -132,4 +130,3 @@ ColumnLayout {
132130
}
133131
}
134132
}
135-

components/controls/SpinBoxRow.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ StyledRect {
1414
required property real min
1515
required property real max
1616
property real step: 1
17-
property var onValueModified: function(value) {}
17+
property var onValueModified: function (value) {}
1818

1919
Layout.fillWidth: true
2020
implicitHeight: row.implicitHeight + Appearance.padding.large * 2
@@ -50,4 +50,3 @@ StyledRect {
5050
}
5151
}
5252
}
53-

components/controls/SplitButtonRow.qml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ StyledRect {
1414
required property string label
1515
property int expandedZ: 100
1616
property bool enabled: true
17-
17+
1818
property alias menuItems: splitButton.menuItems
1919
property alias active: splitButton.active
2020
property alias expanded: splitButton.expanded
2121
property alias type: splitButton.type
22-
22+
2323
signal selected(item: MenuItem)
2424

2525
Layout.fillWidth: true
2626
implicitHeight: row.implicitHeight + Appearance.padding.large * 2
2727
radius: Appearance.rounding.normal
2828
color: Colours.layer(Colours.palette.m3surfaceContainer, 2)
29-
30-
clip: false
29+
30+
clip: false
3131
z: splitButton.menu.implicitHeight > 0 ? expandedZ : 1
3232
opacity: enabled ? 1.0 : 0.5
3333

@@ -47,14 +47,14 @@ StyledRect {
4747
id: splitButton
4848
enabled: root.enabled
4949
type: SplitButton.Filled
50-
50+
5151
menu.z: 1
52-
52+
5353
stateLayer.onClicked: {
54-
splitButton.expanded = !splitButton.expanded
54+
splitButton.expanded = !splitButton.expanded;
5555
}
56-
57-
menu.onItemSelected: (item) => {
56+
57+
menu.onItemSelected: item => {
5858
root.selected(item);
5959
}
6060
}

components/controls/StyledInputField.qml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ Item {
1515
property int horizontalAlignment: TextInput.AlignHCenter
1616
property int implicitWidth: 70
1717
property bool enabled: true
18-
18+
1919
// Expose activeFocus through alias to avoid FINAL property override
2020
readonly property alias hasFocus: inputField.activeFocus
21-
21+
2222
signal textEdited(string text)
23-
signal editingFinished()
23+
signal editingFinished
2424

2525
implicitHeight: inputField.implicitHeight + Appearance.padding.small * 2
2626

2727
StyledRect {
2828
id: container
2929

3030
anchors.fill: parent
31-
color: inputHover.containsMouse || inputField.activeFocus
32-
? Colours.layer(Colours.palette.m3surfaceContainer, 3)
33-
: Colours.layer(Colours.palette.m3surfaceContainer, 2)
31+
color: inputHover.containsMouse || inputField.activeFocus ? Colours.layer(Colours.palette.m3surfaceContainer, 3) : Colours.layer(Colours.palette.m3surfaceContainer, 2)
3432
radius: Appearance.rounding.small
3533
border.width: 1
36-
border.color: inputField.activeFocus
37-
? Colours.palette.m3primary
38-
: Qt.alpha(Colours.palette.m3outline, 0.3)
34+
border.color: inputField.activeFocus ? Colours.palette.m3primary : Qt.alpha(Colours.palette.m3outline, 0.3)
3935
opacity: root.enabled ? 1 : 0.5
4036

41-
Behavior on color { CAnim {} }
42-
Behavior on border.color { CAnim {} }
37+
Behavior on color {
38+
CAnim {}
39+
}
40+
Behavior on border.color {
41+
CAnim {}
42+
}
4343

4444
MouseArea {
4545
id: inputHover
@@ -58,23 +58,22 @@ Item {
5858
validator: root.validator
5959
readOnly: root.readOnly
6060
enabled: root.enabled
61-
61+
6262
Binding {
6363
target: inputField
6464
property: "text"
6565
value: root.text
6666
when: !inputField.activeFocus
6767
}
68-
68+
6969
onTextChanged: {
7070
root.text = text;
7171
root.textEdited(text);
7272
}
73-
73+
7474
onEditingFinished: {
7575
root.editingFinished();
7676
}
7777
}
7878
}
7979
}
80-

components/controls/SwitchRow.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ StyledRect {
1212
required property string label
1313
required property bool checked
1414
property bool enabled: true
15-
property var onToggled: function(checked) {}
15+
property var onToggled: function (checked) {}
1616

1717
Layout.fillWidth: true
1818
implicitHeight: row.implicitHeight + Appearance.padding.large * 2
@@ -46,4 +46,3 @@ StyledRect {
4646
}
4747
}
4848
}
49-

0 commit comments

Comments
 (0)