chore: add newline after id
This commit is contained in:
parent
344ec92cc5
commit
3b08cd6594
37 changed files with 134 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ StyledRect {
|
|||
|
||||
Column {
|
||||
id: layout
|
||||
|
||||
anchors.centerIn: parent
|
||||
spacing: Appearance.spacing.small
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ CollapsibleSection {
|
|||
|
||||
Timer {
|
||||
id: reloadTimer
|
||||
|
||||
interval: 300
|
||||
onTriggered: {
|
||||
Schemes.reload();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ SplitPaneWithDetails {
|
|||
rightSettingsComponent: Component {
|
||||
StyledFlickable {
|
||||
id: settingsFlickable
|
||||
|
||||
flickableDirection: Flickable.VerticalFlick
|
||||
contentHeight: settingsInner.height
|
||||
|
||||
|
|
|
|||
|
|
@ -359,6 +359,7 @@ StyledFlickable {
|
|||
|
||||
RowLayout {
|
||||
id: batteryPercent
|
||||
|
||||
Layout.topMargin: Appearance.spacing.small / 2
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Appearance.padding.smaller
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ ColumnLayout {
|
|||
|
||||
StyledInputField {
|
||||
id: inputField
|
||||
|
||||
Layout.preferredWidth: 70
|
||||
validator: root.validator
|
||||
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@ GridView {
|
|||
|
||||
StyledText {
|
||||
id: filenameText
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ DeviceDetails {
|
|||
|
||||
Timer {
|
||||
id: connectionUpdateTimer
|
||||
|
||||
interval: 500
|
||||
repeat: true
|
||||
running: network && network.ssid
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}"`]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ Singleton {
|
|||
|
||||
Component {
|
||||
id: apComp
|
||||
|
||||
AccessPoint {}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1285,6 +1285,7 @@ Singleton {
|
|||
|
||||
Timer {
|
||||
id: monitorRestartTimer
|
||||
|
||||
interval: 2000
|
||||
onTriggered: {
|
||||
monitorProc.running = true;
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ Singleton {
|
|||
|
||||
SystemClock {
|
||||
id: clock
|
||||
|
||||
precision: SystemClock.Seconds
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue