Settings formatting (qmlfmt)

This commit is contained in:
quadbyte 2025-08-11 11:44:06 -04:00
parent bbffe39fe0
commit 41d93128b8
10 changed files with 192 additions and 62 deletions

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "About"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "About"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -15,9 +15,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Bar"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Bar"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Display"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Display"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -24,7 +24,11 @@ Item {
spacing: Style.marginMedium * scaling
// Profile section
NText { text: "Profile"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText {
text: "Profile"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
RowLayout {
Layout.fillWidth: true
@ -50,8 +54,15 @@ Item {
ColumnLayout {
Layout.fillWidth: true
spacing: 2 * scaling
NText { text: "Profile Image"; color: Colors.textPrimary; font.weight: Style.fontWeightBold }
NText { text: "Your profile picture displayed in various places throughout the shell"; color: Colors.textSecondary }
NText {
text: "Profile Image"
color: Colors.textPrimary
font.weight: Style.fontWeightBold
}
NText {
text: "Your profile picture displayed in various places throughout the shell"
color: Colors.textSecondary
}
NTextBox {
text: Settings.data.general.avatarImage
placeholderText: "/home/user/.face"
@ -61,33 +72,48 @@ Item {
}
}
NDivider { Layout.fillWidth: true; Layout.topMargin: Style.marginSmall * scaling; Layout.bottomMargin: Style.marginSmall * scaling }
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginSmall * scaling
Layout.bottomMargin: Style.marginSmall * scaling
}
// UI section
NText { text: "User Interface"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText {
text: "User Interface"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NToggle {
label: "Show Corners"
description: "Display rounded corners on the edge of the screen"
value: Settings.data.general.showScreenCorners
onToggled: function (v) { Settings.data.general.showScreenCorners = v }
onToggled: function (v) {
Settings.data.general.showScreenCorners = v
}
}
NToggle {
label: "Show Dock"
description: "Display a dock at the bottom of the screen for quick access to applications"
value: Settings.data.general.showDock
onToggled: function (v) { Settings.data.general.showDock = v }
onToggled: function (v) {
Settings.data.general.showDock = v
}
}
NToggle {
label: "Dim Desktop"
description: "Dim the desktop when panels or menus are open"
value: Settings.data.general.dimDesktop
onToggled: function (v) { Settings.data.general.dimDesktop = v }
onToggled: function (v) {
Settings.data.general.dimDesktop = v
}
}
Item { Layout.fillHeight: true }
Item {
Layout.fillHeight: true
}
}
}

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Misc"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Misc"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Network"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Network"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Screen Recorder"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Screen Recorder"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Time & Weather"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Time & Weather"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}

View file

@ -13,9 +13,17 @@ Item {
ColumnLayout {
anchors.fill: parent
spacing: Style.marginMedium * scaling
NText { text: "Wallpaper"; font.weight: Style.fontWeightBold; color: Colors.accentSecondary }
NText { text: "Coming soon"; color: Colors.textSecondary }
Item { Layout.fillHeight: true }
NText {
text: "Wallpaper"
font.weight: Style.fontWeightBold
color: Colors.accentSecondary
}
NText {
text: "Coming soon"
color: Colors.textSecondary
}
Item {
Layout.fillHeight: true
}
}
}