From c082f4e871f3bc5ab1153f0bb1203a8f74d5e264 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Tue, 14 Oct 2025 19:32:41 -0400 Subject: [PATCH] autofmt --- Modules/Settings/Tabs/BarTab.qml | 12 ++--- Services/BarService.qml | 2 +- Widgets/NSearchableComboBox.qml | 76 ++++++++++++++++---------------- 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/Modules/Settings/Tabs/BarTab.qml b/Modules/Settings/Tabs/BarTab.qml index 8ada273c7..e1a9421a3 100644 --- a/Modules/Settings/Tabs/BarTab.qml +++ b/Modules/Settings/Tabs/BarTab.qml @@ -397,12 +397,12 @@ ColumnLayout { availableWidgets.clear() const widgets = BarWidgetRegistry.getAvailableWidgets() widgets.forEach(entry => { - availableWidgets.append({ - "key": entry, - "name": entry, - "badgeLocations": getWidgetLocations(entry) - }) - }) + availableWidgets.append({ + "key": entry, + "name": entry, + "badgeLocations": getWidgetLocations(entry) + }) + }) } // Base list model for all combo boxes diff --git a/Services/BarService.qml b/Services/BarService.qml index 05c66c1e1..0a839294d 100644 --- a/Services/BarService.qml +++ b/Services/BarService.qml @@ -15,7 +15,7 @@ Singleton { // Key format: "screenName|section|widgetId|index" property var widgetInstances: ({}) - signal activeWidgetsChanged() + signal activeWidgetsChanged signal barReadyChanged(string screenName) diff --git a/Widgets/NSearchableComboBox.qml b/Widgets/NSearchableComboBox.qml index 4e7baf5ef..ffb4f4cce 100644 --- a/Widgets/NSearchableComboBox.qml +++ b/Widgets/NSearchableComboBox.qml @@ -210,49 +210,49 @@ RowLayout { combo.popup.close() } - contentItem: RowLayout { - width: parent.width - spacing: Style.marginM - - NText { - text: name - pointSize: Style.fontSizeM - color: highlighted ? Color.mOnTertiary : Color.mOnSurface - verticalAlignment: Text.AlignVCenter - elide: Text.ElideRight - Layout.fillWidth: true - Behavior on color { - ColorAnimation { - duration: Style.animationFast - } - } - } - - RowLayout { - spacing: Style.marginS - Layout.alignment: Qt.AlignRight - - Repeater { - model: badgeLocations - - delegate: NBox { - width: Style.baseWidgetSize * 0.7 - height: Style.baseWidgetSize * 0.7 - color: "transparent" - radius: Style.radiusS - border.width: 0 + contentItem: RowLayout { + width: parent.width + spacing: Style.marginM - NText { - anchors.centerIn: parent - text: modelData - pointSize: Style.fontSizeXXS - font.weight: Style.fontWeightBold - color: highlighted ? Color.mOnTertiary : Color.mOnSurface + NText { + text: name + pointSize: Style.fontSizeM + color: highlighted ? Color.mOnTertiary : Color.mOnSurface + verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight + Layout.fillWidth: true + Behavior on color { + ColorAnimation { + duration: Style.animationFast + } + } + } + + RowLayout { + spacing: Style.marginS + Layout.alignment: Qt.AlignRight + + Repeater { + model: badgeLocations + + delegate: NBox { + width: Style.baseWidgetSize * 0.7 + height: Style.baseWidgetSize * 0.7 + color: "transparent" + radius: Style.radiusS + border.width: 0 + + NText { + anchors.centerIn: parent + text: modelData + pointSize: Style.fontSizeXXS + font.weight: Style.fontWeightBold + color: highlighted ? Color.mOnTertiary : Color.mOnSurface + } } } } } - } background: Rectangle { width: listView.width color: highlighted ? Color.mTertiary : Color.transparent