More settings

This commit is contained in:
quadbyte 2025-08-13 00:24:56 -04:00
parent 27e7745549
commit dc962a294a
4 changed files with 56 additions and 61 deletions

View file

@ -10,12 +10,12 @@ import qs.Widgets
NLoader { NLoader {
id: root id: root
readonly property real scaling: Scaling.scale(screen)
content: Component { content: Component {
NPanel { NPanel {
id: panel id: panel
readonly property real scaling: Scaling.scale(screen)
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
property int currentTabIndex: 0 property int currentTabIndex: 0

View file

@ -14,8 +14,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
padding: 16 padding: Style.marginMedium * scaling
rightPadding: 12
clip: true clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded ScrollBar.vertical.policy: ScrollBar.AsNeeded
@ -30,31 +29,21 @@ ColumnLayout {
} }
ColumnLayout { ColumnLayout {
spacing: 4 spacing: Style.marginLarge * scaling
Layout.fillWidth: true Layout.fillWidth: true
NText { NText {
text: "Miscellaneous Settings" text: "Miscellaneous Settings"
font.pointSize: 18 font.pointSize: Style.fontSizeXL * scaling
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Colors.textPrimary color: Colors.textPrimary
Layout.bottomMargin: 8 Layout.bottomMargin: Style.marginSmall * scaling
} }
// Audio Visualizer section // Audio Visualizer section
ColumnLayout {
spacing: 8
Layout.fillWidth: true
Layout.topMargin: 8
NText {
text: "Audio Visualizer"
font.pointSize: 13
font.weight: Style.fontWeightBold
color: Colors.textPrimary
}
NComboBox { NComboBox {
label: "Audio Visualizer"
description: "Choose a visualization type"
optionsKeys: ["radial", "bars", "wave"] optionsKeys: ["radial", "bars", "wave"]
optionsLabels: ["Radial", "Bars", "Wave"] optionsLabels: ["Radial", "Bars", "Wave"]
currentKey: Settings.data.audioVisualizer.type currentKey: Settings.data.audioVisualizer.type
@ -65,5 +54,4 @@ ColumnLayout {
} }
} }
} }
}
} }

View file

@ -29,7 +29,7 @@ ColumnLayout {
} }
ColumnLayout { ColumnLayout {
spacing: Style.marginTiny * scaling spacing: Style.marginLarge * scaling
Layout.fillWidth: true Layout.fillWidth: true
NText { NText {
@ -42,7 +42,7 @@ ColumnLayout {
// Wallpaper Settings Category // Wallpaper Settings Category
ColumnLayout { ColumnLayout {
spacing: 8 spacing: Style.marginSmall * scaling
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: Style.marginSmall * scaling Layout.topMargin: Style.marginSmall * scaling
@ -76,10 +76,10 @@ ColumnLayout {
NText { NText {
text: "Automation" text: "Automation"
font.pointSize: 18 font.pointSize: Style.fontSizeXL * scaling
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Colors.textPrimary color: Colors.textPrimary
Layout.bottomMargin: 8 Layout.bottomMargin: Style.marginSmall * scaling
} }
// Random Wallpaper // Random Wallpaper
@ -151,12 +151,12 @@ ColumnLayout {
// ------------------------------- // -------------------------------
// SWWW // SWWW
ColumnLayout { ColumnLayout {
spacing: 4 spacing: Style.marginLarge * scaling
Layout.fillWidth: true Layout.fillWidth: true
NText { NText {
text: "SWWW" text: "SWWW"
font.pointSize: 18 font.pointSize: Style.fontSizeXL * scaling
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Colors.textPrimary color: Colors.textPrimary
Layout.bottomMargin: 8 Layout.bottomMargin: 8
@ -174,9 +174,9 @@ ColumnLayout {
// SWWW Settings (only visible when useSWWW is enabled) // SWWW Settings (only visible when useSWWW is enabled)
ColumnLayout { ColumnLayout {
spacing: 8 spacing: Style.marginSmall * scaling
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 8 Layout.topMargin: Style.marginSmall * scaling
visible: Settings.data.wallpaper.swww.enabled visible: Settings.data.wallpaper.swww.enabled
// Resize Mode // Resize Mode

View file

@ -69,6 +69,12 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
} }
RowLayout {
Layout.fillWidth: true
ColumnLayout {
Layout.fillWidth: true
// Wallpaper grid // Wallpaper grid
NText { NText {
text: "Available Wallpapers" text: "Available Wallpapers"
@ -80,6 +86,7 @@ Item {
text: "Click on a wallpaper to set it as your current wallpaper" text: "Click on a wallpaper to set it as your current wallpaper"
color: Colors.textSecondary color: Colors.textSecondary
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
Layout.fillWidth: true
} }
NText { NText {
@ -89,11 +96,7 @@ Item {
font.pointSize: Style.fontSizeSmall * scaling font.pointSize: Style.fontSizeSmall * scaling
visible: Settings.data.wallpaper.swww.enabled visible: Settings.data.wallpaper.swww.enabled
} }
}
// Refresh button and status
RowLayout {
Layout.fillWidth: true
spacing: Style.marginSmall * scaling
NIconButton { NIconButton {
icon: "refresh" icon: "refresh"
@ -101,12 +104,16 @@ Item {
onClicked: { onClicked: {
Wallpapers.loadWallpapers() Wallpapers.loadWallpapers()
} }
Layout.alignment: Qt.AlignTop | Qt.AlignRight
}
} }
NText { // Refresh button and status
text: "Refresh" RowLayout {
color: Colors.textSecondary Layout.fillWidth: true
} spacing: Style.marginSmall * scaling
} }
// Wallpaper grid container // Wallpaper grid container