From 3b08cd6594cf98e8855cfa21c63877c55e328935 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 20 Mar 2026 01:45:10 +1100 Subject: [PATCH] chore: add newline after id --- components/controls/CollapsibleSection.qml | 6 ++++++ components/controls/SplitButtonRow.qml | 2 ++ components/controls/StyledInputField.qml | 2 ++ modules/bar/components/Clock.qml | 1 + modules/bar/popouts/Content.qml | 3 +++ modules/bar/popouts/WirelessPassword.qml | 6 ++++++ modules/bar/popouts/kblayout/KbLayout.qml | 4 ++++ modules/bar/popouts/kblayout/KbLayoutModel.qml | 7 +++++++ modules/controlcenter/Panes.qml | 2 ++ .../controlcenter/appearance/AppearancePane.qml | 8 ++++++++ .../appearance/sections/ColorSchemeSection.qml | 2 ++ .../appearance/sections/ColorVariantSection.qml | 1 + .../appearance/sections/FontsSection.qml | 7 +++++++ modules/controlcenter/audio/AudioPane.qml | 7 +++++++ modules/controlcenter/bluetooth/BtPane.qml | 1 + modules/controlcenter/bluetooth/Details.qml | 1 + .../components/ConnectedButtonGroup.qml | 3 +++ modules/controlcenter/components/SliderInput.qml | 1 + modules/controlcenter/components/WallpaperGrid.qml | 1 + modules/controlcenter/dashboard/DashboardPane.qml | 4 ++++ modules/controlcenter/launcher/LauncherPane.qml | 9 +++++++++ modules/controlcenter/network/NetworkingPane.qml | 4 ++++ modules/controlcenter/network/VpnDetails.qml | 2 ++ modules/controlcenter/network/VpnList.qml | 2 ++ modules/controlcenter/network/WirelessDetails.qml | 1 + .../network/WirelessPasswordDialog.qml | 4 ++++ modules/controlcenter/taskbar/TaskbarPane.qml | 14 ++++++++++++++ modules/dashboard/Content.qml | 4 ++++ modules/dashboard/LyricMenu.qml | 5 +++++ modules/dashboard/LyricsView.qml | 4 ++++ modules/dashboard/Media.qml | 3 +++ services/LyricsService.qml | 6 ++++++ services/Network.qml | 1 + services/NetworkUsage.qml | 3 +++ services/Nmcli.qml | 1 + services/SystemUsage.qml | 1 + services/Time.qml | 1 + 37 files changed, 134 insertions(+) diff --git a/components/controls/CollapsibleSection.qml b/components/controls/CollapsibleSection.qml index e3d8eefd..a338d412 100644 --- a/components/controls/CollapsibleSection.qml +++ b/components/controls/CollapsibleSection.qml @@ -22,11 +22,13 @@ ColumnLayout { Item { id: sectionHeaderItem + Layout.fillWidth: true Layout.preferredHeight: Math.max(titleRow.implicitHeight + Appearance.padding.normal * 2, 48) RowLayout { id: titleRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -74,6 +76,7 @@ ColumnLayout { Item { id: contentWrapper + Layout.fillWidth: true Layout.preferredHeight: root.expanded ? (contentColumn.implicitHeight + Appearance.spacing.small * 2) : 0 clip: true @@ -86,6 +89,7 @@ ColumnLayout { StyledRect { id: backgroundRect + anchors.fill: parent radius: Appearance.rounding.normal color: Colours.transparency.enabled ? Colours.layer(Colours.palette.m3surfaceContainer, root.nested ? 3 : 2) : (root.nested ? Colours.palette.m3surfaceContainerHigh : Colours.palette.m3surfaceContainer) @@ -101,6 +105,7 @@ ColumnLayout { ColumnLayout { id: contentColumn + anchors.left: parent.left anchors.right: parent.right y: Appearance.spacing.small @@ -118,6 +123,7 @@ ColumnLayout { StyledText { id: descriptionText + Layout.fillWidth: true Layout.topMargin: root.description !== "" ? Appearance.spacing.smaller : 0 Layout.bottomMargin: root.description !== "" ? Appearance.spacing.small : 0 diff --git a/components/controls/SplitButtonRow.qml b/components/controls/SplitButtonRow.qml index db9925ff..a07bf028 100644 --- a/components/controls/SplitButtonRow.qml +++ b/components/controls/SplitButtonRow.qml @@ -33,6 +33,7 @@ StyledRect { RowLayout { id: row + anchors.fill: parent anchors.margins: Appearance.padding.large spacing: Appearance.spacing.normal @@ -45,6 +46,7 @@ StyledRect { SplitButton { id: splitButton + enabled: root.enabled type: SplitButton.Filled diff --git a/components/controls/StyledInputField.qml b/components/controls/StyledInputField.qml index 0d199c73..cd671765 100644 --- a/components/controls/StyledInputField.qml +++ b/components/controls/StyledInputField.qml @@ -43,6 +43,7 @@ Item { MouseArea { id: inputHover + anchors.fill: parent hoverEnabled: true cursorShape: Qt.IBeamCursor @@ -52,6 +53,7 @@ Item { StyledTextField { id: inputField + anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: root.horizontalAlignment diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml index 96885764..13c9035a 100644 --- a/modules/bar/components/Clock.qml +++ b/modules/bar/components/Clock.qml @@ -19,6 +19,7 @@ StyledRect { Column { id: layout + anchors.centerIn: parent spacing: Appearance.spacing.small diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index 6543e584..24e7909e 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -35,6 +35,7 @@ Item { Popout { id: networkPopout + name: "network" sourceComponent: Network { wrapper: root.wrapper @@ -52,9 +53,11 @@ Item { Popout { id: passwordPopout + name: "wirelesspassword" sourceComponent: WirelessPassword { id: passwordComponent + wrapper: root.wrapper network: networkPopout.item?.passwordNetwork ?? null } diff --git a/modules/bar/popouts/WirelessPassword.qml b/modules/bar/popouts/WirelessPassword.qml index 96639e71..54e635da 100644 --- a/modules/bar/popouts/WirelessPassword.qml +++ b/modules/bar/popouts/WirelessPassword.qml @@ -42,6 +42,7 @@ ColumnLayout { Timer { id: focusTimer + interval: 150 onTriggered: { root.forceActiveFocus(); @@ -140,6 +141,7 @@ ColumnLayout { StyledText { id: networkNameText + Layout.alignment: Qt.AlignHCenter text: { if (root.network) { @@ -206,6 +208,7 @@ ColumnLayout { FocusScope { id: passwordContainer + objectName: "passwordContainer" Layout.topMargin: Appearance.spacing.large Layout.fillWidth: true @@ -259,6 +262,7 @@ ColumnLayout { Timer { id: passwordFocusTimer + interval: 50 onTriggered: { passwordContainer.forceActiveFocus(); @@ -526,6 +530,7 @@ ColumnLayout { Timer { id: connectionMonitor + interval: 1000 repeat: true triggeredOnStart: false @@ -545,6 +550,7 @@ ColumnLayout { Timer { id: connectionSuccessTimer + interval: 500 onTriggered: { // Double-check connection is still active diff --git a/modules/bar/popouts/kblayout/KbLayout.qml b/modules/bar/popouts/kblayout/KbLayout.qml index 94b6f7ec..aea25ceb 100644 --- a/modules/bar/popouts/kblayout/KbLayout.qml +++ b/modules/bar/popouts/kblayout/KbLayout.qml @@ -37,6 +37,7 @@ ColumnLayout { ListView { id: list + model: kb.visibleModel Layout.fillWidth: true @@ -95,6 +96,7 @@ ColumnLayout { StateLayer { id: layer + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -111,6 +113,7 @@ ColumnLayout { StyledText { id: rowText + anchors.verticalCenter: layer.verticalCenter anchors.left: layer.left anchors.right: layer.right @@ -173,6 +176,7 @@ ColumnLayout { SequentialAnimation { id: popIn + running: false ParallelAnimation { diff --git a/modules/bar/popouts/kblayout/KbLayoutModel.qml b/modules/bar/popouts/kblayout/KbLayoutModel.qml index 43710953..0d95b7a8 100644 --- a/modules/bar/popouts/kblayout/KbLayoutModel.qml +++ b/modules/bar/popouts/kblayout/KbLayoutModel.qml @@ -10,6 +10,7 @@ import Caelestia Item { id: model + visible: false ListModel { @@ -44,6 +45,7 @@ Item { Process { id: _xkbXmlBase + command: ["xmllint", "--xpath", "//layout/configItem[name and description]", "/usr/share/X11/xkb/rules/base.xml"] stdout: StdioCollector { onStreamFinished: _buildXmlMap(text) @@ -54,6 +56,7 @@ Item { Process { id: _xkbXmlEvdev + command: ["xmllint", "--xpath", "//layout/configItem[name and description]", "/usr/share/X11/xkb/rules/evdev.xml"] stdout: StdioCollector { onStreamFinished: _buildXmlMap(text) @@ -107,6 +110,7 @@ Item { Process { id: _getKbLayoutOpt + command: ["hyprctl", "-j", "getoption", "input:kb_layout"] stdout: StdioCollector { onStreamFinished: { @@ -126,6 +130,7 @@ Item { Process { id: _fetchLayoutsFromDevices + command: ["hyprctl", "-j", "devices"] stdout: StdioCollector { onStreamFinished: { @@ -143,6 +148,7 @@ Item { Process { id: _fetchActiveLayouts + command: ["hyprctl", "-j", "devices"] stdout: StdioCollector { onStreamFinished: { @@ -165,6 +171,7 @@ Item { Process { id: _switchProc + onRunningChanged: if (!running) _fetchActiveLayouts.running = true } diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml index f18bf74f..a05e6aa6 100644 --- a/modules/controlcenter/Panes.qml +++ b/modules/controlcenter/Panes.qml @@ -56,6 +56,7 @@ ClippingRectangle { Timer { id: animationDelayTimer + interval: Appearance.anim.durations.normal onTriggered: { layout.animationComplete = true; @@ -64,6 +65,7 @@ ClippingRectangle { Timer { id: initialOpeningTimer + interval: Appearance.anim.durations.large running: true onTriggered: { diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index b412ca57..94ca1cb7 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -155,6 +155,7 @@ Item { StyledFlickable { id: sidebarFlickable + readonly property var rootPane: root flickableDirection: Flickable.VerticalFlick contentHeight: sidebarLayout.height @@ -165,6 +166,7 @@ Item { ColumnLayout { id: sidebarLayout + anchors.left: parent.left anchors.right: parent.right spacing: Appearance.spacing.small @@ -219,31 +221,37 @@ Item { AnimationsSection { id: animationsSection + rootPane: sidebarFlickable.rootPane } FontsSection { id: fontsSection + rootPane: sidebarFlickable.rootPane } ScalesSection { id: scalesSection + rootPane: sidebarFlickable.rootPane } TransparencySection { id: transparencySection + rootPane: sidebarFlickable.rootPane } BorderSection { id: borderSection + rootPane: sidebarFlickable.rootPane } BackgroundSection { id: backgroundSection + rootPane: sidebarFlickable.rootPane } } diff --git a/modules/controlcenter/appearance/sections/ColorSchemeSection.qml b/modules/controlcenter/appearance/sections/ColorSchemeSection.qml index 3c58673c..4b4559ae 100644 --- a/modules/controlcenter/appearance/sections/ColorSchemeSection.qml +++ b/modules/controlcenter/appearance/sections/ColorSchemeSection.qml @@ -53,6 +53,7 @@ CollapsibleSection { Timer { id: reloadTimer + interval: 300 onTriggered: { Schemes.reload(); @@ -82,6 +83,7 @@ CollapsibleSection { MaterialIcon { id: iconPlaceholder + visible: false text: "circle" font.pointSize: Appearance.font.size.large diff --git a/modules/controlcenter/appearance/sections/ColorVariantSection.qml b/modules/controlcenter/appearance/sections/ColorVariantSection.qml index 3aa17dd9..3de9e4b3 100644 --- a/modules/controlcenter/appearance/sections/ColorVariantSection.qml +++ b/modules/controlcenter/appearance/sections/ColorVariantSection.qml @@ -48,6 +48,7 @@ CollapsibleSection { Timer { id: reloadTimer + interval: 300 onTriggered: { Schemes.reload(); diff --git a/modules/controlcenter/appearance/sections/FontsSection.qml b/modules/controlcenter/appearance/sections/FontsSection.qml index 4b5f0699..d3a2ce68 100644 --- a/modules/controlcenter/appearance/sections/FontsSection.qml +++ b/modules/controlcenter/appearance/sections/FontsSection.qml @@ -20,6 +20,7 @@ CollapsibleSection { CollapsibleSection { id: sansFontSection + title: qsTr("Sans-serif font family") expanded: true showBackground: true @@ -33,6 +34,7 @@ CollapsibleSection { sourceComponent: StyledListView { id: sansFontList + property alias contentHeight: sansFontList.contentHeight clip: true @@ -101,6 +103,7 @@ CollapsibleSection { CollapsibleSection { id: monoFontSection + title: qsTr("Monospace font family") expanded: false showBackground: true @@ -114,6 +117,7 @@ CollapsibleSection { sourceComponent: StyledListView { id: monoFontList + property alias contentHeight: monoFontList.contentHeight clip: true @@ -182,6 +186,7 @@ CollapsibleSection { CollapsibleSection { id: materialFontSection + title: qsTr("Material font family") expanded: false showBackground: true @@ -189,6 +194,7 @@ CollapsibleSection { Loader { id: materialFontLoader + Layout.fillWidth: true Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0 asynchronous: true @@ -196,6 +202,7 @@ CollapsibleSection { sourceComponent: StyledListView { id: materialFontList + property alias contentHeight: materialFontList.contentHeight clip: true diff --git a/modules/controlcenter/audio/AudioPane.qml b/modules/controlcenter/audio/AudioPane.qml index 01d90be7..deefc965 100644 --- a/modules/controlcenter/audio/AudioPane.qml +++ b/modules/controlcenter/audio/AudioPane.qml @@ -26,6 +26,7 @@ Item { StyledFlickable { id: leftAudioFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: leftContent.height @@ -217,6 +218,7 @@ Item { rightContent: Component { StyledFlickable { id: rightAudioFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: contentLayout.height @@ -265,6 +267,7 @@ Item { StyledInputField { id: outputVolumeInput + Layout.preferredWidth: 70 validator: IntValidator { bottom: 0 @@ -336,6 +339,7 @@ Item { StyledSlider { id: outputVolumeSlider + Layout.fillWidth: true implicitHeight: Appearance.padding.normal * 3 @@ -380,6 +384,7 @@ Item { StyledInputField { id: inputVolumeInput + Layout.preferredWidth: 70 validator: IntValidator { bottom: 0 @@ -451,6 +456,7 @@ Item { StyledSlider { id: inputVolumeSlider + Layout.fillWidth: true implicitHeight: Appearance.padding.normal * 3 @@ -511,6 +517,7 @@ Item { StyledInputField { id: streamVolumeInput + Layout.preferredWidth: 70 validator: IntValidator { bottom: 0 diff --git a/modules/controlcenter/bluetooth/BtPane.qml b/modules/controlcenter/bluetooth/BtPane.qml index 7d3b9ca3..1b9a7fcf 100644 --- a/modules/controlcenter/bluetooth/BtPane.qml +++ b/modules/controlcenter/bluetooth/BtPane.qml @@ -53,6 +53,7 @@ SplitPaneWithDetails { rightSettingsComponent: Component { StyledFlickable { id: settingsFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: settingsInner.height diff --git a/modules/controlcenter/bluetooth/Details.qml b/modules/controlcenter/bluetooth/Details.qml index bc276e09..cb216ce2 100644 --- a/modules/controlcenter/bluetooth/Details.qml +++ b/modules/controlcenter/bluetooth/Details.qml @@ -359,6 +359,7 @@ StyledFlickable { RowLayout { id: batteryPercent + Layout.topMargin: Appearance.spacing.small / 2 Layout.fillWidth: true Layout.preferredHeight: Appearance.padding.smaller diff --git a/modules/controlcenter/components/ConnectedButtonGroup.qml b/modules/controlcenter/components/ConnectedButtonGroup.qml index ab707fb7..a85b4f3e 100644 --- a/modules/controlcenter/components/ConnectedButtonGroup.qml +++ b/modules/controlcenter/components/ConnectedButtonGroup.qml @@ -40,6 +40,7 @@ StyledRect { GridLayout { id: buttonGrid + Layout.alignment: Qt.AlignHCenter rowSpacing: Appearance.spacing.small columnSpacing: Appearance.spacing.small @@ -48,10 +49,12 @@ StyledRect { Repeater { id: repeater + model: root.options delegate: TextButton { id: button + required property int index required property var modelData diff --git a/modules/controlcenter/components/SliderInput.qml b/modules/controlcenter/components/SliderInput.qml index 11b3f70d..6b83a7a9 100644 --- a/modules/controlcenter/components/SliderInput.qml +++ b/modules/controlcenter/components/SliderInput.qml @@ -78,6 +78,7 @@ ColumnLayout { StyledInputField { id: inputField + Layout.preferredWidth: 70 validator: root.validator diff --git a/modules/controlcenter/components/WallpaperGrid.qml b/modules/controlcenter/components/WallpaperGrid.qml index ed6bb40a..8b71809e 100644 --- a/modules/controlcenter/components/WallpaperGrid.qml +++ b/modules/controlcenter/components/WallpaperGrid.qml @@ -201,6 +201,7 @@ GridView { StyledText { id: filenameText + anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom diff --git a/modules/controlcenter/dashboard/DashboardPane.qml b/modules/controlcenter/dashboard/DashboardPane.qml index 728814e2..489af781 100644 --- a/modules/controlcenter/dashboard/DashboardPane.qml +++ b/modules/controlcenter/dashboard/DashboardPane.qml @@ -64,6 +64,7 @@ Item { ClippingRectangle { id: dashboardClippingRect + anchors.fill: parent anchors.margins: Appearance.padding.normal anchors.leftMargin: 0 @@ -87,6 +88,7 @@ Item { InnerBorder { id: dashboardBorder + leftThickness: 0 rightThickness: Appearance.padding.normal } @@ -96,6 +98,7 @@ Item { StyledFlickable { id: dashboardFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: dashboardLayout.height @@ -105,6 +108,7 @@ Item { ColumnLayout { id: dashboardLayout + anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top diff --git a/modules/controlcenter/launcher/LauncherPane.qml b/modules/controlcenter/launcher/LauncherPane.qml index 884123cf..17e89aae 100644 --- a/modules/controlcenter/launcher/LauncherPane.qml +++ b/modules/controlcenter/launcher/LauncherPane.qml @@ -148,6 +148,7 @@ Item { ColumnLayout { id: leftLauncherLayout + anchors.fill: parent spacing: Appearance.spacing.small @@ -284,6 +285,7 @@ Item { Loader { id: appsListLoader + Layout.fillWidth: true Layout.fillHeight: true asynchronous: true @@ -369,6 +371,7 @@ Item { Component { id: hiddenIcon + MaterialIcon { text: "visibility_off" fill: 1 @@ -378,6 +381,7 @@ Item { Component { id: favouriteIcon + MaterialIcon { text: "favorite" fill: 1 @@ -486,6 +490,7 @@ Item { StyledFlickable { id: settingsFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: settingsInner.height @@ -509,6 +514,7 @@ Item { ColumnLayout { id: appDetailsLayout + anchors.fill: parent readonly property var displayedApp: parent && parent.displayedApp !== undefined ? parent.displayedApp : null @@ -557,6 +563,7 @@ Item { StyledText { id: appTitleText + Layout.alignment: Qt.AlignHCenter text: displayedApp ? (displayedApp.name || displayedApp.entry?.name || qsTr("Application Details")) : "" font.pointSize: Appearance.font.size.large @@ -574,6 +581,7 @@ Item { StyledFlickable { id: detailsFlickable + anchors.fill: parent flickableDirection: Flickable.VerticalFlick contentHeight: debugLayout.height @@ -584,6 +592,7 @@ Item { ColumnLayout { id: debugLayout + anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top diff --git a/modules/controlcenter/network/NetworkingPane.qml b/modules/controlcenter/network/NetworkingPane.qml index 0b0a645c..78d5fc93 100644 --- a/modules/controlcenter/network/NetworkingPane.qml +++ b/modules/controlcenter/network/NetworkingPane.qml @@ -281,6 +281,7 @@ Item { StyledFlickable { id: settingsFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: settingsInner.height @@ -304,6 +305,7 @@ Item { StyledFlickable { id: ethernetFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: ethernetDetailsInner.height @@ -327,6 +329,7 @@ Item { StyledFlickable { id: wirelessFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: wirelessDetailsInner.height @@ -350,6 +353,7 @@ Item { StyledFlickable { id: vpnFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: vpnDetailsInner.height diff --git a/modules/controlcenter/network/VpnDetails.qml b/modules/controlcenter/network/VpnDetails.qml index 1c71cd71..dd41dde5 100644 --- a/modules/controlcenter/network/VpnDetails.qml +++ b/modules/controlcenter/network/VpnDetails.qml @@ -302,6 +302,7 @@ DeviceDetails { StyledTextField { id: displayNameField + anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: TextInput.AlignLeft @@ -338,6 +339,7 @@ DeviceDetails { StyledTextField { id: interfaceNameField + anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: TextInput.AlignLeft diff --git a/modules/controlcenter/network/VpnList.qml b/modules/controlcenter/network/VpnList.qml index 81f4a45a..0d09001e 100644 --- a/modules/controlcenter/network/VpnList.qml +++ b/modules/controlcenter/network/VpnList.qml @@ -586,6 +586,7 @@ ColumnLayout { StyledTextField { id: displayNameField + anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: TextInput.AlignLeft @@ -622,6 +623,7 @@ ColumnLayout { StyledTextField { id: interfaceNameField + anchors.centerIn: parent width: parent.width - Appearance.padding.normal horizontalAlignment: TextInput.AlignLeft diff --git a/modules/controlcenter/network/WirelessDetails.qml b/modules/controlcenter/network/WirelessDetails.qml index e8777cdf..29b2f627 100644 --- a/modules/controlcenter/network/WirelessDetails.qml +++ b/modules/controlcenter/network/WirelessDetails.qml @@ -58,6 +58,7 @@ DeviceDetails { Timer { id: connectionUpdateTimer + interval: 500 repeat: true running: network && network.ssid diff --git a/modules/controlcenter/network/WirelessPasswordDialog.qml b/modules/controlcenter/network/WirelessPasswordDialog.qml index 7ad5204a..7a666f33 100644 --- a/modules/controlcenter/network/WirelessPasswordDialog.qml +++ b/modules/controlcenter/network/WirelessPasswordDialog.qml @@ -150,6 +150,7 @@ Item { Item { id: passwordContainer + Layout.topMargin: Appearance.spacing.large Layout.fillWidth: true implicitHeight: Math.max(48, charList.implicitHeight + Appearance.padding.normal * 2) @@ -247,6 +248,7 @@ Item { StyledText { id: placeholder + anchors.centerIn: parent text: qsTr("Password") color: Colours.palette.m3outline @@ -443,6 +445,7 @@ Item { Timer { id: connectionMonitor + interval: 1000 repeat: true triggeredOnStart: false @@ -462,6 +465,7 @@ Item { Timer { id: connectionSuccessTimer + interval: 500 onTriggered: { if (root.visible && Nmcli.active && Nmcli.active.ssid) { diff --git a/modules/controlcenter/taskbar/TaskbarPane.qml b/modules/controlcenter/taskbar/TaskbarPane.qml index 99d56c84..f18ac894 100644 --- a/modules/controlcenter/taskbar/TaskbarPane.qml +++ b/modules/controlcenter/taskbar/TaskbarPane.qml @@ -124,6 +124,7 @@ Item { ClippingRectangle { id: taskbarClippingRect + anchors.fill: parent anchors.margins: Appearance.padding.normal anchors.leftMargin: 0 @@ -147,6 +148,7 @@ Item { InnerBorder { id: taskbarBorder + leftThickness: 0 rightThickness: Appearance.padding.normal } @@ -156,6 +158,7 @@ Item { StyledFlickable { id: sidebarFlickable + flickableDirection: Flickable.VerticalFlick contentHeight: sidebarLayout.height @@ -165,6 +168,7 @@ Item { ColumnLayout { id: sidebarLayout + anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top @@ -264,11 +268,13 @@ Item { RowLayout { id: mainRowLayout + Layout.fillWidth: true spacing: Appearance.spacing.normal ColumnLayout { id: leftColumnLayout + Layout.fillWidth: true Layout.alignment: Qt.AlignTop spacing: Appearance.spacing.normal @@ -294,6 +300,7 @@ Item { RowLayout { id: workspacesShownRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -329,6 +336,7 @@ Item { RowLayout { id: workspacesActiveIndicatorRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -362,6 +370,7 @@ Item { RowLayout { id: workspacesOccupiedBgRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -395,6 +404,7 @@ Item { RowLayout { id: workspacesShowWindowsRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -428,6 +438,7 @@ Item { RowLayout { id: workspacesMaxWindowIconsRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -463,6 +474,7 @@ Item { RowLayout { id: workspacesPerMonitorRow + anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -529,6 +541,7 @@ Item { ColumnLayout { id: middleColumnLayout + Layout.fillWidth: true Layout.alignment: Qt.AlignTop spacing: Appearance.spacing.normal @@ -654,6 +667,7 @@ Item { ColumnLayout { id: rightColumnLayout + Layout.fillWidth: true Layout.alignment: Qt.AlignTop spacing: Appearance.spacing.normal diff --git a/modules/dashboard/Content.qml b/modules/dashboard/Content.qml index fba608fe..978fbc6f 100644 --- a/modules/dashboard/Content.qml +++ b/modules/dashboard/Content.qml @@ -163,6 +163,7 @@ Item { Component { id: dashComponent + Dash { visibilities: root.visibilities state: root.state @@ -172,6 +173,7 @@ Item { Component { id: mediaComponent + MediaWrapper { visibilities: root.visibilities } @@ -179,11 +181,13 @@ Item { Component { id: performanceComponent + Performance {} } Component { id: weatherComponent + Weather {} } diff --git a/modules/dashboard/LyricMenu.qml b/modules/dashboard/LyricMenu.qml index f033b0dd..fe984299 100644 --- a/modules/dashboard/LyricMenu.qml +++ b/modules/dashboard/LyricMenu.qml @@ -91,6 +91,7 @@ StyledRect { delegate: Item { id: delegateRoot + width: ListView.view.width * 0.98 height: 70 anchors.horizontalCenter: parent?.horizontalCenter @@ -112,6 +113,7 @@ StyledRect { Rectangle { id: background + anchors.fill: parent radius: Appearance.rounding.small @@ -217,6 +219,7 @@ StyledRect { StyledInputField { id: searchTitle + Layout.fillWidth: true horizontalAlignment: TextInput.AlignLeft @@ -229,6 +232,7 @@ StyledRect { StyledInputField { id: searchArtist + Layout.fillWidth: true horizontalAlignment: TextInput.AlignLeft @@ -278,6 +282,7 @@ StyledRect { TextInput { id: offsetInput + horizontalAlignment: TextInput.AlignHCenter color: Colours.palette.m3secondary font.pointSize: Appearance.font.size.normal diff --git a/modules/dashboard/LyricsView.qml b/modules/dashboard/LyricsView.qml index bce1b23a..38972402 100644 --- a/modules/dashboard/LyricsView.qml +++ b/modules/dashboard/LyricsView.qml @@ -24,6 +24,7 @@ StyledListView { Timer { id: hideTimer + interval: 300 // long enough to bridge the track switch gap running: false repeat: false @@ -50,6 +51,7 @@ StyledListView { delegate: Item { id: delegateRoot + width: ListView.view.width required property string lyricLine @@ -63,6 +65,7 @@ StyledListView { MultiEffect { id: effect + anchors.fill: lyricText source: lyricText scale: lyricText.scale @@ -90,6 +93,7 @@ StyledListView { Text { id: lyricText + text: delegateRoot.lyricLine ? delegateRoot.lyricLine.replace(/\u00A0/g, " ") : "" width: parent.width * 0.85 anchors.centerIn: parent diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index ec92743c..69e21524 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -80,6 +80,7 @@ Item { Timer { id: lyricsHideDelay + interval: 300 repeat: false } @@ -248,6 +249,7 @@ Item { LyricsView { id: lyricsViewInDetails + Layout.fillWidth: true Layout.preferredHeight: 200 } @@ -429,6 +431,7 @@ Item { RowLayout { id: playerChanger + parent: !root.lyricsShowingDebounced ? details : leftSection Layout.alignment: Qt.AlignHCenter spacing: Appearance.spacing.small diff --git a/services/LyricsService.qml b/services/LyricsService.qml index 35dba468..c9f782a9 100644 --- a/services/LyricsService.qml +++ b/services/LyricsService.qml @@ -41,6 +41,7 @@ Singleton { Timer { id: seekTimer + interval: 500 onTriggered: root.isManualSeeking = false } @@ -48,6 +49,7 @@ Singleton { // If no local lyrics were loaded within the interval, fall back to NetEase Timer { id: fallbackTimer + interval: 200 onTriggered: { if (lyricsModel.count === 0) { @@ -59,12 +61,14 @@ Singleton { Timer { id: loadDebounce + interval: 50 onTriggered: root._doLoadLyrics() } FileView { id: lyricsMapFileView + path: root.lyricsMapFile printErrors: false onLoaded: { @@ -78,6 +82,7 @@ Singleton { FileView { id: lrcFile + printErrors: false onLoaded: { fallbackTimer.stop(); @@ -111,6 +116,7 @@ Singleton { Process { id: saveLyricsMap + command: ["sh", "-c", `mkdir -p "${root.lyricsDir}" && echo '${JSON.stringify(root.lyricsMap)}' > "${root.lyricsMapFile}"`] } diff --git a/services/Network.qml b/services/Network.qml index ede37c80..7fd15dd4 100644 --- a/services/Network.qml +++ b/services/Network.qml @@ -230,6 +230,7 @@ Singleton { Component { id: apComp + AccessPoint {} } diff --git a/services/NetworkUsage.qml b/services/NetworkUsage.qml index 45186471..55c0c6ed 100644 --- a/services/NetworkUsage.qml +++ b/services/NetworkUsage.qml @@ -141,16 +141,19 @@ Singleton { CircularBuffer { id: _downloadBuffer + capacity: root.historyLength + 1 } CircularBuffer { id: _uploadBuffer + capacity: root.historyLength + 1 } FileView { id: netDevFile + path: "/proc/net/dev" } diff --git a/services/Nmcli.qml b/services/Nmcli.qml index 812387f1..9fa753cc 100644 --- a/services/Nmcli.qml +++ b/services/Nmcli.qml @@ -1285,6 +1285,7 @@ Singleton { Timer { id: monitorRestartTimer + interval: 2000 onTriggered: { monitorProc.running = true; diff --git a/services/SystemUsage.qml b/services/SystemUsage.qml index 50856446..413ad765 100644 --- a/services/SystemUsage.qml +++ b/services/SystemUsage.qml @@ -138,6 +138,7 @@ Singleton { Process { id: storage + // Get physical disks with aggregated usage from their partitions // -J triggers JSON output. -b triggers bytes. command: ["lsblk", "-J", "-b", "-o", "NAME,SIZE,TYPE,FSUSED,FSSIZE,MOUNTPOINT"] diff --git a/services/Time.qml b/services/Time.qml index a07d9ef8..d918d0b6 100644 --- a/services/Time.qml +++ b/services/Time.qml @@ -23,6 +23,7 @@ Singleton { SystemClock { id: clock + precision: SystemClock.Seconds } }