Autoformatting

This commit is contained in:
LemmyCook 2025-09-14 11:51:04 -04:00
parent 8b6c7632af
commit af0f4818d8
8 changed files with 309 additions and 325 deletions

View file

@ -21,15 +21,13 @@ Rectangle {
readonly property bool isVertical: barPosition === "left" || barPosition === "right"
function onLoaded() {
// When the widget is fully initialized with its props
// set the screen for the trayMenu
// When the widget is fully initialized with its props set the screen for the trayMenu
if (trayMenu.item) {
trayMenu.item.screen = screen
}
}
visible: SystemTray.items.values.length > 0
// Changed: The binding now refers to 'trayFlow'
implicitWidth: isVertical ? Math.round(Style.capsuleHeight * scaling) : (trayFlow.implicitWidth + Style.marginS * scaling * 2)
implicitHeight: isVertical ? (trayFlow.implicitHeight + Style.marginS * scaling * 2) : Math.round(Style.capsuleHeight * scaling)
radius: Math.round(Style.radiusM * scaling)
@ -41,8 +39,6 @@ Rectangle {
id: trayFlow
anchors.centerIn: parent
spacing: Style.marginS * scaling
// The key change: Dynamically set the flow direction
flow: isVertical ? Flow.TopToBottom : Flow.LeftToRight
Repeater {

View file

@ -24,7 +24,6 @@ ColumnLayout {
RowLayout {
spacing: Style.marginL * scaling
// Versions
GridLayout {
columns: 2
@ -115,8 +114,7 @@ ColumnLayout {
}
}
}
}
}
NDivider {
Layout.fillWidth: true

View file

@ -11,7 +11,6 @@ ColumnLayout {
id: root
spacing: Style.marginL * scaling
// Helper functions to update arrays immutably
function addMonitor(list, name) {
const arr = (list || []).slice()
@ -46,7 +45,6 @@ ColumnLayout {
description: "Configure bar appearance and positioning."
}
RowLayout {
NComboBox {
Layout.fillWidth: true
@ -190,7 +188,6 @@ ColumnLayout {
}
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL * scaling

View file

@ -10,8 +10,6 @@ ColumnLayout {
id: root
spacing: Style.marginL * scaling
// Cache for scheme JSON (can be flat or {dark, light})
property var schemeColorsCache: ({})
@ -106,7 +104,6 @@ ColumnLayout {
}
}
// Main Toggles - Dark Mode / Matugen
NHeader {
label: "Behavior"
@ -143,7 +140,6 @@ ColumnLayout {
}
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL * scaling

View file

@ -10,8 +10,6 @@ ColumnLayout {
id: root
spacing: Style.marginL * scaling
// Helper functions to update arrays immutably
function addMonitor(list, name) {
const arr = (list || []).slice()

View file

@ -109,7 +109,6 @@ ColumnLayout {
onToggled: checked => Settings.data.appLauncher.useApp2Unit = checked
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL * scaling