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 {
|
Item {
|
||||||
id: sectionHeaderItem
|
id: sectionHeaderItem
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Math.max(titleRow.implicitHeight + Appearance.padding.normal * 2, 48)
|
Layout.preferredHeight: Math.max(titleRow.implicitHeight + Appearance.padding.normal * 2, 48)
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: titleRow
|
id: titleRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -74,6 +76,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: contentWrapper
|
id: contentWrapper
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: root.expanded ? (contentColumn.implicitHeight + Appearance.spacing.small * 2) : 0
|
Layout.preferredHeight: root.expanded ? (contentColumn.implicitHeight + Appearance.spacing.small * 2) : 0
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -86,6 +89,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
id: backgroundRect
|
id: backgroundRect
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Appearance.rounding.normal
|
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)
|
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 {
|
ColumnLayout {
|
||||||
id: contentColumn
|
id: contentColumn
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
y: Appearance.spacing.small
|
y: Appearance.spacing.small
|
||||||
|
|
@ -118,6 +123,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: descriptionText
|
id: descriptionText
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: root.description !== "" ? Appearance.spacing.smaller : 0
|
Layout.topMargin: root.description !== "" ? Appearance.spacing.smaller : 0
|
||||||
Layout.bottomMargin: root.description !== "" ? Appearance.spacing.small : 0
|
Layout.bottomMargin: root.description !== "" ? Appearance.spacing.small : 0
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ StyledRect {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: row
|
id: row
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Appearance.padding.large
|
anchors.margins: Appearance.padding.large
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
@ -45,6 +46,7 @@ StyledRect {
|
||||||
|
|
||||||
SplitButton {
|
SplitButton {
|
||||||
id: splitButton
|
id: splitButton
|
||||||
|
|
||||||
enabled: root.enabled
|
enabled: root.enabled
|
||||||
type: SplitButton.Filled
|
type: SplitButton.Filled
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ Item {
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: inputHover
|
id: inputHover
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.IBeamCursor
|
cursorShape: Qt.IBeamCursor
|
||||||
|
|
@ -52,6 +53,7 @@ Item {
|
||||||
|
|
||||||
StyledTextField {
|
StyledTextField {
|
||||||
id: inputField
|
id: inputField
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - Appearance.padding.normal
|
width: parent.width - Appearance.padding.normal
|
||||||
horizontalAlignment: root.horizontalAlignment
|
horizontalAlignment: root.horizontalAlignment
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ StyledRect {
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: layout
|
id: layout
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Appearance.spacing.small
|
spacing: Appearance.spacing.small
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ Item {
|
||||||
|
|
||||||
Popout {
|
Popout {
|
||||||
id: networkPopout
|
id: networkPopout
|
||||||
|
|
||||||
name: "network"
|
name: "network"
|
||||||
sourceComponent: Network {
|
sourceComponent: Network {
|
||||||
wrapper: root.wrapper
|
wrapper: root.wrapper
|
||||||
|
|
@ -52,9 +53,11 @@ Item {
|
||||||
|
|
||||||
Popout {
|
Popout {
|
||||||
id: passwordPopout
|
id: passwordPopout
|
||||||
|
|
||||||
name: "wirelesspassword"
|
name: "wirelesspassword"
|
||||||
sourceComponent: WirelessPassword {
|
sourceComponent: WirelessPassword {
|
||||||
id: passwordComponent
|
id: passwordComponent
|
||||||
|
|
||||||
wrapper: root.wrapper
|
wrapper: root.wrapper
|
||||||
network: networkPopout.item?.passwordNetwork ?? null
|
network: networkPopout.item?.passwordNetwork ?? null
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: focusTimer
|
id: focusTimer
|
||||||
|
|
||||||
interval: 150
|
interval: 150
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.forceActiveFocus();
|
root.forceActiveFocus();
|
||||||
|
|
@ -140,6 +141,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: networkNameText
|
id: networkNameText
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: {
|
text: {
|
||||||
if (root.network) {
|
if (root.network) {
|
||||||
|
|
@ -206,6 +208,7 @@ ColumnLayout {
|
||||||
|
|
||||||
FocusScope {
|
FocusScope {
|
||||||
id: passwordContainer
|
id: passwordContainer
|
||||||
|
|
||||||
objectName: "passwordContainer"
|
objectName: "passwordContainer"
|
||||||
Layout.topMargin: Appearance.spacing.large
|
Layout.topMargin: Appearance.spacing.large
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -259,6 +262,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: passwordFocusTimer
|
id: passwordFocusTimer
|
||||||
|
|
||||||
interval: 50
|
interval: 50
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
passwordContainer.forceActiveFocus();
|
passwordContainer.forceActiveFocus();
|
||||||
|
|
@ -526,6 +530,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: connectionMonitor
|
id: connectionMonitor
|
||||||
|
|
||||||
interval: 1000
|
interval: 1000
|
||||||
repeat: true
|
repeat: true
|
||||||
triggeredOnStart: false
|
triggeredOnStart: false
|
||||||
|
|
@ -545,6 +550,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: connectionSuccessTimer
|
id: connectionSuccessTimer
|
||||||
|
|
||||||
interval: 500
|
interval: 500
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
// Double-check connection is still active
|
// Double-check connection is still active
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ ColumnLayout {
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: list
|
id: list
|
||||||
|
|
||||||
model: kb.visibleModel
|
model: kb.visibleModel
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -95,6 +96,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
id: layer
|
id: layer
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -111,6 +113,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: rowText
|
id: rowText
|
||||||
|
|
||||||
anchors.verticalCenter: layer.verticalCenter
|
anchors.verticalCenter: layer.verticalCenter
|
||||||
anchors.left: layer.left
|
anchors.left: layer.left
|
||||||
anchors.right: layer.right
|
anchors.right: layer.right
|
||||||
|
|
@ -173,6 +176,7 @@ ColumnLayout {
|
||||||
|
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
id: popIn
|
id: popIn
|
||||||
|
|
||||||
running: false
|
running: false
|
||||||
|
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import Caelestia
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: model
|
id: model
|
||||||
|
|
||||||
visible: false
|
visible: false
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
|
|
@ -44,6 +45,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: _xkbXmlBase
|
id: _xkbXmlBase
|
||||||
|
|
||||||
command: ["xmllint", "--xpath", "//layout/configItem[name and description]", "/usr/share/X11/xkb/rules/base.xml"]
|
command: ["xmllint", "--xpath", "//layout/configItem[name and description]", "/usr/share/X11/xkb/rules/base.xml"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: _buildXmlMap(text)
|
onStreamFinished: _buildXmlMap(text)
|
||||||
|
|
@ -54,6 +56,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: _xkbXmlEvdev
|
id: _xkbXmlEvdev
|
||||||
|
|
||||||
command: ["xmllint", "--xpath", "//layout/configItem[name and description]", "/usr/share/X11/xkb/rules/evdev.xml"]
|
command: ["xmllint", "--xpath", "//layout/configItem[name and description]", "/usr/share/X11/xkb/rules/evdev.xml"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: _buildXmlMap(text)
|
onStreamFinished: _buildXmlMap(text)
|
||||||
|
|
@ -107,6 +110,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: _getKbLayoutOpt
|
id: _getKbLayoutOpt
|
||||||
|
|
||||||
command: ["hyprctl", "-j", "getoption", "input:kb_layout"]
|
command: ["hyprctl", "-j", "getoption", "input:kb_layout"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
|
|
@ -126,6 +130,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: _fetchLayoutsFromDevices
|
id: _fetchLayoutsFromDevices
|
||||||
|
|
||||||
command: ["hyprctl", "-j", "devices"]
|
command: ["hyprctl", "-j", "devices"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
|
|
@ -143,6 +148,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: _fetchActiveLayouts
|
id: _fetchActiveLayouts
|
||||||
|
|
||||||
command: ["hyprctl", "-j", "devices"]
|
command: ["hyprctl", "-j", "devices"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
|
|
@ -165,6 +171,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: _switchProc
|
id: _switchProc
|
||||||
|
|
||||||
onRunningChanged: if (!running)
|
onRunningChanged: if (!running)
|
||||||
_fetchActiveLayouts.running = true
|
_fetchActiveLayouts.running = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ ClippingRectangle {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: animationDelayTimer
|
id: animationDelayTimer
|
||||||
|
|
||||||
interval: Appearance.anim.durations.normal
|
interval: Appearance.anim.durations.normal
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
layout.animationComplete = true;
|
layout.animationComplete = true;
|
||||||
|
|
@ -64,6 +65,7 @@ ClippingRectangle {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: initialOpeningTimer
|
id: initialOpeningTimer
|
||||||
|
|
||||||
interval: Appearance.anim.durations.large
|
interval: Appearance.anim.durations.large
|
||||||
running: true
|
running: true
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: sidebarFlickable
|
id: sidebarFlickable
|
||||||
|
|
||||||
readonly property var rootPane: root
|
readonly property var rootPane: root
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: sidebarLayout.height
|
contentHeight: sidebarLayout.height
|
||||||
|
|
@ -165,6 +166,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: sidebarLayout
|
id: sidebarLayout
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
spacing: Appearance.spacing.small
|
spacing: Appearance.spacing.small
|
||||||
|
|
@ -219,31 +221,37 @@ Item {
|
||||||
|
|
||||||
AnimationsSection {
|
AnimationsSection {
|
||||||
id: animationsSection
|
id: animationsSection
|
||||||
|
|
||||||
rootPane: sidebarFlickable.rootPane
|
rootPane: sidebarFlickable.rootPane
|
||||||
}
|
}
|
||||||
|
|
||||||
FontsSection {
|
FontsSection {
|
||||||
id: fontsSection
|
id: fontsSection
|
||||||
|
|
||||||
rootPane: sidebarFlickable.rootPane
|
rootPane: sidebarFlickable.rootPane
|
||||||
}
|
}
|
||||||
|
|
||||||
ScalesSection {
|
ScalesSection {
|
||||||
id: scalesSection
|
id: scalesSection
|
||||||
|
|
||||||
rootPane: sidebarFlickable.rootPane
|
rootPane: sidebarFlickable.rootPane
|
||||||
}
|
}
|
||||||
|
|
||||||
TransparencySection {
|
TransparencySection {
|
||||||
id: transparencySection
|
id: transparencySection
|
||||||
|
|
||||||
rootPane: sidebarFlickable.rootPane
|
rootPane: sidebarFlickable.rootPane
|
||||||
}
|
}
|
||||||
|
|
||||||
BorderSection {
|
BorderSection {
|
||||||
id: borderSection
|
id: borderSection
|
||||||
|
|
||||||
rootPane: sidebarFlickable.rootPane
|
rootPane: sidebarFlickable.rootPane
|
||||||
}
|
}
|
||||||
|
|
||||||
BackgroundSection {
|
BackgroundSection {
|
||||||
id: backgroundSection
|
id: backgroundSection
|
||||||
|
|
||||||
rootPane: sidebarFlickable.rootPane
|
rootPane: sidebarFlickable.rootPane
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: reloadTimer
|
id: reloadTimer
|
||||||
|
|
||||||
interval: 300
|
interval: 300
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
Schemes.reload();
|
Schemes.reload();
|
||||||
|
|
@ -82,6 +83,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
id: iconPlaceholder
|
id: iconPlaceholder
|
||||||
|
|
||||||
visible: false
|
visible: false
|
||||||
text: "circle"
|
text: "circle"
|
||||||
font.pointSize: Appearance.font.size.large
|
font.pointSize: Appearance.font.size.large
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: reloadTimer
|
id: reloadTimer
|
||||||
|
|
||||||
interval: 300
|
interval: 300
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
Schemes.reload();
|
Schemes.reload();
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: sansFontSection
|
id: sansFontSection
|
||||||
|
|
||||||
title: qsTr("Sans-serif font family")
|
title: qsTr("Sans-serif font family")
|
||||||
expanded: true
|
expanded: true
|
||||||
showBackground: true
|
showBackground: true
|
||||||
|
|
@ -33,6 +34,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
sourceComponent: StyledListView {
|
sourceComponent: StyledListView {
|
||||||
id: sansFontList
|
id: sansFontList
|
||||||
|
|
||||||
property alias contentHeight: sansFontList.contentHeight
|
property alias contentHeight: sansFontList.contentHeight
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -101,6 +103,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: monoFontSection
|
id: monoFontSection
|
||||||
|
|
||||||
title: qsTr("Monospace font family")
|
title: qsTr("Monospace font family")
|
||||||
expanded: false
|
expanded: false
|
||||||
showBackground: true
|
showBackground: true
|
||||||
|
|
@ -114,6 +117,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
sourceComponent: StyledListView {
|
sourceComponent: StyledListView {
|
||||||
id: monoFontList
|
id: monoFontList
|
||||||
|
|
||||||
property alias contentHeight: monoFontList.contentHeight
|
property alias contentHeight: monoFontList.contentHeight
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -182,6 +186,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: materialFontSection
|
id: materialFontSection
|
||||||
|
|
||||||
title: qsTr("Material font family")
|
title: qsTr("Material font family")
|
||||||
expanded: false
|
expanded: false
|
||||||
showBackground: true
|
showBackground: true
|
||||||
|
|
@ -189,6 +194,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: materialFontLoader
|
id: materialFontLoader
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0
|
Layout.preferredHeight: item ? Math.min(item.contentHeight, 300) : 0
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
|
|
@ -196,6 +202,7 @@ CollapsibleSection {
|
||||||
|
|
||||||
sourceComponent: StyledListView {
|
sourceComponent: StyledListView {
|
||||||
id: materialFontList
|
id: materialFontList
|
||||||
|
|
||||||
property alias contentHeight: materialFontList.contentHeight
|
property alias contentHeight: materialFontList.contentHeight
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: leftAudioFlickable
|
id: leftAudioFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: leftContent.height
|
contentHeight: leftContent.height
|
||||||
|
|
||||||
|
|
@ -217,6 +218,7 @@ Item {
|
||||||
rightContent: Component {
|
rightContent: Component {
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: rightAudioFlickable
|
id: rightAudioFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: contentLayout.height
|
contentHeight: contentLayout.height
|
||||||
|
|
||||||
|
|
@ -265,6 +267,7 @@ Item {
|
||||||
|
|
||||||
StyledInputField {
|
StyledInputField {
|
||||||
id: outputVolumeInput
|
id: outputVolumeInput
|
||||||
|
|
||||||
Layout.preferredWidth: 70
|
Layout.preferredWidth: 70
|
||||||
validator: IntValidator {
|
validator: IntValidator {
|
||||||
bottom: 0
|
bottom: 0
|
||||||
|
|
@ -336,6 +339,7 @@ Item {
|
||||||
|
|
||||||
StyledSlider {
|
StyledSlider {
|
||||||
id: outputVolumeSlider
|
id: outputVolumeSlider
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
implicitHeight: Appearance.padding.normal * 3
|
implicitHeight: Appearance.padding.normal * 3
|
||||||
|
|
||||||
|
|
@ -380,6 +384,7 @@ Item {
|
||||||
|
|
||||||
StyledInputField {
|
StyledInputField {
|
||||||
id: inputVolumeInput
|
id: inputVolumeInput
|
||||||
|
|
||||||
Layout.preferredWidth: 70
|
Layout.preferredWidth: 70
|
||||||
validator: IntValidator {
|
validator: IntValidator {
|
||||||
bottom: 0
|
bottom: 0
|
||||||
|
|
@ -451,6 +456,7 @@ Item {
|
||||||
|
|
||||||
StyledSlider {
|
StyledSlider {
|
||||||
id: inputVolumeSlider
|
id: inputVolumeSlider
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
implicitHeight: Appearance.padding.normal * 3
|
implicitHeight: Appearance.padding.normal * 3
|
||||||
|
|
||||||
|
|
@ -511,6 +517,7 @@ Item {
|
||||||
|
|
||||||
StyledInputField {
|
StyledInputField {
|
||||||
id: streamVolumeInput
|
id: streamVolumeInput
|
||||||
|
|
||||||
Layout.preferredWidth: 70
|
Layout.preferredWidth: 70
|
||||||
validator: IntValidator {
|
validator: IntValidator {
|
||||||
bottom: 0
|
bottom: 0
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ SplitPaneWithDetails {
|
||||||
rightSettingsComponent: Component {
|
rightSettingsComponent: Component {
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: settingsFlickable
|
id: settingsFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: settingsInner.height
|
contentHeight: settingsInner.height
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -359,6 +359,7 @@ StyledFlickable {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: batteryPercent
|
id: batteryPercent
|
||||||
|
|
||||||
Layout.topMargin: Appearance.spacing.small / 2
|
Layout.topMargin: Appearance.spacing.small / 2
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Appearance.padding.smaller
|
Layout.preferredHeight: Appearance.padding.smaller
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ StyledRect {
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
id: buttonGrid
|
id: buttonGrid
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
rowSpacing: Appearance.spacing.small
|
rowSpacing: Appearance.spacing.small
|
||||||
columnSpacing: Appearance.spacing.small
|
columnSpacing: Appearance.spacing.small
|
||||||
|
|
@ -48,10 +49,12 @@ StyledRect {
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: repeater
|
id: repeater
|
||||||
|
|
||||||
model: root.options
|
model: root.options
|
||||||
|
|
||||||
delegate: TextButton {
|
delegate: TextButton {
|
||||||
id: button
|
id: button
|
||||||
|
|
||||||
required property int index
|
required property int index
|
||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledInputField {
|
StyledInputField {
|
||||||
id: inputField
|
id: inputField
|
||||||
|
|
||||||
Layout.preferredWidth: 70
|
Layout.preferredWidth: 70
|
||||||
validator: root.validator
|
validator: root.validator
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,7 @@ GridView {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: filenameText
|
id: filenameText
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ Item {
|
||||||
|
|
||||||
ClippingRectangle {
|
ClippingRectangle {
|
||||||
id: dashboardClippingRect
|
id: dashboardClippingRect
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Appearance.padding.normal
|
anchors.margins: Appearance.padding.normal
|
||||||
anchors.leftMargin: 0
|
anchors.leftMargin: 0
|
||||||
|
|
@ -87,6 +88,7 @@ Item {
|
||||||
|
|
||||||
InnerBorder {
|
InnerBorder {
|
||||||
id: dashboardBorder
|
id: dashboardBorder
|
||||||
|
|
||||||
leftThickness: 0
|
leftThickness: 0
|
||||||
rightThickness: Appearance.padding.normal
|
rightThickness: Appearance.padding.normal
|
||||||
}
|
}
|
||||||
|
|
@ -96,6 +98,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: dashboardFlickable
|
id: dashboardFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: dashboardLayout.height
|
contentHeight: dashboardLayout.height
|
||||||
|
|
||||||
|
|
@ -105,6 +108,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: dashboardLayout
|
id: dashboardLayout
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: leftLauncherLayout
|
id: leftLauncherLayout
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
spacing: Appearance.spacing.small
|
spacing: Appearance.spacing.small
|
||||||
|
|
@ -284,6 +285,7 @@ Item {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: appsListLoader
|
id: appsListLoader
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
|
|
@ -369,6 +371,7 @@ Item {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: hiddenIcon
|
id: hiddenIcon
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
text: "visibility_off"
|
text: "visibility_off"
|
||||||
fill: 1
|
fill: 1
|
||||||
|
|
@ -378,6 +381,7 @@ Item {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: favouriteIcon
|
id: favouriteIcon
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
text: "favorite"
|
text: "favorite"
|
||||||
fill: 1
|
fill: 1
|
||||||
|
|
@ -486,6 +490,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: settingsFlickable
|
id: settingsFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: settingsInner.height
|
contentHeight: settingsInner.height
|
||||||
|
|
||||||
|
|
@ -509,6 +514,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: appDetailsLayout
|
id: appDetailsLayout
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
readonly property var displayedApp: parent && parent.displayedApp !== undefined ? parent.displayedApp : null
|
readonly property var displayedApp: parent && parent.displayedApp !== undefined ? parent.displayedApp : null
|
||||||
|
|
@ -557,6 +563,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: appTitleText
|
id: appTitleText
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: displayedApp ? (displayedApp.name || displayedApp.entry?.name || qsTr("Application Details")) : ""
|
text: displayedApp ? (displayedApp.name || displayedApp.entry?.name || qsTr("Application Details")) : ""
|
||||||
font.pointSize: Appearance.font.size.large
|
font.pointSize: Appearance.font.size.large
|
||||||
|
|
@ -574,6 +581,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: detailsFlickable
|
id: detailsFlickable
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: debugLayout.height
|
contentHeight: debugLayout.height
|
||||||
|
|
@ -584,6 +592,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: debugLayout
|
id: debugLayout
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
|
||||||
|
|
@ -281,6 +281,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: settingsFlickable
|
id: settingsFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: settingsInner.height
|
contentHeight: settingsInner.height
|
||||||
|
|
||||||
|
|
@ -304,6 +305,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: ethernetFlickable
|
id: ethernetFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: ethernetDetailsInner.height
|
contentHeight: ethernetDetailsInner.height
|
||||||
|
|
||||||
|
|
@ -327,6 +329,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: wirelessFlickable
|
id: wirelessFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: wirelessDetailsInner.height
|
contentHeight: wirelessDetailsInner.height
|
||||||
|
|
||||||
|
|
@ -350,6 +353,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: vpnFlickable
|
id: vpnFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: vpnDetailsInner.height
|
contentHeight: vpnDetailsInner.height
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -302,6 +302,7 @@ DeviceDetails {
|
||||||
|
|
||||||
StyledTextField {
|
StyledTextField {
|
||||||
id: displayNameField
|
id: displayNameField
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - Appearance.padding.normal
|
width: parent.width - Appearance.padding.normal
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
@ -338,6 +339,7 @@ DeviceDetails {
|
||||||
|
|
||||||
StyledTextField {
|
StyledTextField {
|
||||||
id: interfaceNameField
|
id: interfaceNameField
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - Appearance.padding.normal
|
width: parent.width - Appearance.padding.normal
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
|
||||||
|
|
@ -586,6 +586,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledTextField {
|
StyledTextField {
|
||||||
id: displayNameField
|
id: displayNameField
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - Appearance.padding.normal
|
width: parent.width - Appearance.padding.normal
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
@ -622,6 +623,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledTextField {
|
StyledTextField {
|
||||||
id: interfaceNameField
|
id: interfaceNameField
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - Appearance.padding.normal
|
width: parent.width - Appearance.padding.normal
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ DeviceDetails {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: connectionUpdateTimer
|
id: connectionUpdateTimer
|
||||||
|
|
||||||
interval: 500
|
interval: 500
|
||||||
repeat: true
|
repeat: true
|
||||||
running: network && network.ssid
|
running: network && network.ssid
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,7 @@ Item {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: passwordContainer
|
id: passwordContainer
|
||||||
|
|
||||||
Layout.topMargin: Appearance.spacing.large
|
Layout.topMargin: Appearance.spacing.large
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
implicitHeight: Math.max(48, charList.implicitHeight + Appearance.padding.normal * 2)
|
implicitHeight: Math.max(48, charList.implicitHeight + Appearance.padding.normal * 2)
|
||||||
|
|
@ -247,6 +248,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: placeholder
|
id: placeholder
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: qsTr("Password")
|
text: qsTr("Password")
|
||||||
color: Colours.palette.m3outline
|
color: Colours.palette.m3outline
|
||||||
|
|
@ -443,6 +445,7 @@ Item {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: connectionMonitor
|
id: connectionMonitor
|
||||||
|
|
||||||
interval: 1000
|
interval: 1000
|
||||||
repeat: true
|
repeat: true
|
||||||
triggeredOnStart: false
|
triggeredOnStart: false
|
||||||
|
|
@ -462,6 +465,7 @@ Item {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: connectionSuccessTimer
|
id: connectionSuccessTimer
|
||||||
|
|
||||||
interval: 500
|
interval: 500
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (root.visible && Nmcli.active && Nmcli.active.ssid) {
|
if (root.visible && Nmcli.active && Nmcli.active.ssid) {
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@ Item {
|
||||||
|
|
||||||
ClippingRectangle {
|
ClippingRectangle {
|
||||||
id: taskbarClippingRect
|
id: taskbarClippingRect
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Appearance.padding.normal
|
anchors.margins: Appearance.padding.normal
|
||||||
anchors.leftMargin: 0
|
anchors.leftMargin: 0
|
||||||
|
|
@ -147,6 +148,7 @@ Item {
|
||||||
|
|
||||||
InnerBorder {
|
InnerBorder {
|
||||||
id: taskbarBorder
|
id: taskbarBorder
|
||||||
|
|
||||||
leftThickness: 0
|
leftThickness: 0
|
||||||
rightThickness: Appearance.padding.normal
|
rightThickness: Appearance.padding.normal
|
||||||
}
|
}
|
||||||
|
|
@ -156,6 +158,7 @@ Item {
|
||||||
|
|
||||||
StyledFlickable {
|
StyledFlickable {
|
||||||
id: sidebarFlickable
|
id: sidebarFlickable
|
||||||
|
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: sidebarLayout.height
|
contentHeight: sidebarLayout.height
|
||||||
|
|
||||||
|
|
@ -165,6 +168,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: sidebarLayout
|
id: sidebarLayout
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
@ -264,11 +268,13 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: mainRowLayout
|
id: mainRowLayout
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: leftColumnLayout
|
id: leftColumnLayout
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
@ -294,6 +300,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: workspacesShownRow
|
id: workspacesShownRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -329,6 +336,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: workspacesActiveIndicatorRow
|
id: workspacesActiveIndicatorRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -362,6 +370,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: workspacesOccupiedBgRow
|
id: workspacesOccupiedBgRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -395,6 +404,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: workspacesShowWindowsRow
|
id: workspacesShowWindowsRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -428,6 +438,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: workspacesMaxWindowIconsRow
|
id: workspacesMaxWindowIconsRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -463,6 +474,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: workspacesPerMonitorRow
|
id: workspacesPerMonitorRow
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -529,6 +541,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: middleColumnLayout
|
id: middleColumnLayout
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
@ -654,6 +667,7 @@ Item {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: rightColumnLayout
|
id: rightColumnLayout
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,7 @@ Item {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: dashComponent
|
id: dashComponent
|
||||||
|
|
||||||
Dash {
|
Dash {
|
||||||
visibilities: root.visibilities
|
visibilities: root.visibilities
|
||||||
state: root.state
|
state: root.state
|
||||||
|
|
@ -172,6 +173,7 @@ Item {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: mediaComponent
|
id: mediaComponent
|
||||||
|
|
||||||
MediaWrapper {
|
MediaWrapper {
|
||||||
visibilities: root.visibilities
|
visibilities: root.visibilities
|
||||||
}
|
}
|
||||||
|
|
@ -179,11 +181,13 @@ Item {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: performanceComponent
|
id: performanceComponent
|
||||||
|
|
||||||
Performance {}
|
Performance {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: weatherComponent
|
id: weatherComponent
|
||||||
|
|
||||||
Weather {}
|
Weather {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ StyledRect {
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
id: delegateRoot
|
id: delegateRoot
|
||||||
|
|
||||||
width: ListView.view.width * 0.98
|
width: ListView.view.width * 0.98
|
||||||
height: 70
|
height: 70
|
||||||
anchors.horizontalCenter: parent?.horizontalCenter
|
anchors.horizontalCenter: parent?.horizontalCenter
|
||||||
|
|
@ -112,6 +113,7 @@ StyledRect {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
id: background
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
|
|
||||||
|
|
@ -217,6 +219,7 @@ StyledRect {
|
||||||
|
|
||||||
StyledInputField {
|
StyledInputField {
|
||||||
id: searchTitle
|
id: searchTitle
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
||||||
|
|
@ -229,6 +232,7 @@ StyledRect {
|
||||||
|
|
||||||
StyledInputField {
|
StyledInputField {
|
||||||
id: searchArtist
|
id: searchArtist
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
||||||
|
|
@ -278,6 +282,7 @@ StyledRect {
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
id: offsetInput
|
id: offsetInput
|
||||||
|
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Appearance.font.size.normal
|
font.pointSize: Appearance.font.size.normal
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ StyledListView {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: hideTimer
|
id: hideTimer
|
||||||
|
|
||||||
interval: 300 // long enough to bridge the track switch gap
|
interval: 300 // long enough to bridge the track switch gap
|
||||||
running: false
|
running: false
|
||||||
repeat: false
|
repeat: false
|
||||||
|
|
@ -50,6 +51,7 @@ StyledListView {
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
id: delegateRoot
|
id: delegateRoot
|
||||||
|
|
||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
|
|
||||||
required property string lyricLine
|
required property string lyricLine
|
||||||
|
|
@ -63,6 +65,7 @@ StyledListView {
|
||||||
|
|
||||||
MultiEffect {
|
MultiEffect {
|
||||||
id: effect
|
id: effect
|
||||||
|
|
||||||
anchors.fill: lyricText
|
anchors.fill: lyricText
|
||||||
source: lyricText
|
source: lyricText
|
||||||
scale: lyricText.scale
|
scale: lyricText.scale
|
||||||
|
|
@ -90,6 +93,7 @@ StyledListView {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: lyricText
|
id: lyricText
|
||||||
|
|
||||||
text: delegateRoot.lyricLine ? delegateRoot.lyricLine.replace(/\u00A0/g, " ") : ""
|
text: delegateRoot.lyricLine ? delegateRoot.lyricLine.replace(/\u00A0/g, " ") : ""
|
||||||
width: parent.width * 0.85
|
width: parent.width * 0.85
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ Item {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: lyricsHideDelay
|
id: lyricsHideDelay
|
||||||
|
|
||||||
interval: 300
|
interval: 300
|
||||||
repeat: false
|
repeat: false
|
||||||
}
|
}
|
||||||
|
|
@ -248,6 +249,7 @@ Item {
|
||||||
|
|
||||||
LyricsView {
|
LyricsView {
|
||||||
id: lyricsViewInDetails
|
id: lyricsViewInDetails
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 200
|
Layout.preferredHeight: 200
|
||||||
}
|
}
|
||||||
|
|
@ -429,6 +431,7 @@ Item {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: playerChanger
|
id: playerChanger
|
||||||
|
|
||||||
parent: !root.lyricsShowingDebounced ? details : leftSection
|
parent: !root.lyricsShowingDebounced ? details : leftSection
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
spacing: Appearance.spacing.small
|
spacing: Appearance.spacing.small
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ Singleton {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: seekTimer
|
id: seekTimer
|
||||||
|
|
||||||
interval: 500
|
interval: 500
|
||||||
onTriggered: root.isManualSeeking = false
|
onTriggered: root.isManualSeeking = false
|
||||||
}
|
}
|
||||||
|
|
@ -48,6 +49,7 @@ Singleton {
|
||||||
// If no local lyrics were loaded within the interval, fall back to NetEase
|
// If no local lyrics were loaded within the interval, fall back to NetEase
|
||||||
Timer {
|
Timer {
|
||||||
id: fallbackTimer
|
id: fallbackTimer
|
||||||
|
|
||||||
interval: 200
|
interval: 200
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (lyricsModel.count === 0) {
|
if (lyricsModel.count === 0) {
|
||||||
|
|
@ -59,12 +61,14 @@ Singleton {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: loadDebounce
|
id: loadDebounce
|
||||||
|
|
||||||
interval: 50
|
interval: 50
|
||||||
onTriggered: root._doLoadLyrics()
|
onTriggered: root._doLoadLyrics()
|
||||||
}
|
}
|
||||||
|
|
||||||
FileView {
|
FileView {
|
||||||
id: lyricsMapFileView
|
id: lyricsMapFileView
|
||||||
|
|
||||||
path: root.lyricsMapFile
|
path: root.lyricsMapFile
|
||||||
printErrors: false
|
printErrors: false
|
||||||
onLoaded: {
|
onLoaded: {
|
||||||
|
|
@ -78,6 +82,7 @@ Singleton {
|
||||||
|
|
||||||
FileView {
|
FileView {
|
||||||
id: lrcFile
|
id: lrcFile
|
||||||
|
|
||||||
printErrors: false
|
printErrors: false
|
||||||
onLoaded: {
|
onLoaded: {
|
||||||
fallbackTimer.stop();
|
fallbackTimer.stop();
|
||||||
|
|
@ -111,6 +116,7 @@ Singleton {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: saveLyricsMap
|
id: saveLyricsMap
|
||||||
|
|
||||||
command: ["sh", "-c", `mkdir -p "${root.lyricsDir}" && echo '${JSON.stringify(root.lyricsMap)}' > "${root.lyricsMapFile}"`]
|
command: ["sh", "-c", `mkdir -p "${root.lyricsDir}" && echo '${JSON.stringify(root.lyricsMap)}' > "${root.lyricsMapFile}"`]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -230,6 +230,7 @@ Singleton {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: apComp
|
id: apComp
|
||||||
|
|
||||||
AccessPoint {}
|
AccessPoint {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,16 +141,19 @@ Singleton {
|
||||||
|
|
||||||
CircularBuffer {
|
CircularBuffer {
|
||||||
id: _downloadBuffer
|
id: _downloadBuffer
|
||||||
|
|
||||||
capacity: root.historyLength + 1
|
capacity: root.historyLength + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
CircularBuffer {
|
CircularBuffer {
|
||||||
id: _uploadBuffer
|
id: _uploadBuffer
|
||||||
|
|
||||||
capacity: root.historyLength + 1
|
capacity: root.historyLength + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
FileView {
|
FileView {
|
||||||
id: netDevFile
|
id: netDevFile
|
||||||
|
|
||||||
path: "/proc/net/dev"
|
path: "/proc/net/dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1285,6 +1285,7 @@ Singleton {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: monitorRestartTimer
|
id: monitorRestartTimer
|
||||||
|
|
||||||
interval: 2000
|
interval: 2000
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
monitorProc.running = true;
|
monitorProc.running = true;
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ Singleton {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: storage
|
id: storage
|
||||||
|
|
||||||
// Get physical disks with aggregated usage from their partitions
|
// Get physical disks with aggregated usage from their partitions
|
||||||
// -J triggers JSON output. -b triggers bytes.
|
// -J triggers JSON output. -b triggers bytes.
|
||||||
command: ["lsblk", "-J", "-b", "-o", "NAME,SIZE,TYPE,FSUSED,FSSIZE,MOUNTPOINT"]
|
command: ["lsblk", "-J", "-b", "-o", "NAME,SIZE,TYPE,FSUSED,FSSIZE,MOUNTPOINT"]
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ Singleton {
|
||||||
|
|
||||||
SystemClock {
|
SystemClock {
|
||||||
id: clock
|
id: clock
|
||||||
|
|
||||||
precision: SystemClock.Seconds
|
precision: SystemClock.Seconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue