Settings: cleanup Display

This commit is contained in:
quadbyte 2025-08-07 11:53:04 -04:00
parent 09706ccb28
commit 8b7d5d8b6a

View file

@ -2,23 +2,11 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell
import qs.Settings
import qs.Components
import qs.Settings
ScrollView {
anchors.fill: parent
padding: 0
rightPadding: 12
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
ColumnLayout {
ColumnLayout {
id: root
width: parent.availableWidth
spacing: 0
anchors.top: parent.top
anchors.margins: 0
// Get list of available monitors/screens
property var monitors: Quickshell.screens || []
@ -34,28 +22,38 @@ ScrollView {
return sorted;
}
Item {
Layout.fillWidth: true
Layout.preferredHeight: 0
}
spacing: 0
anchors.fill: parent
anchors.margins: 0
ScrollView {
id: scrollView
Layout.fillWidth: true
Layout.fillHeight: true
padding: 16
rightPadding: 12
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
ColumnLayout {
spacing: 12
Layout.fillWidth: true
width: scrollView.availableWidth
spacing: 0
Text {
text: "Monitor Selection"
font.pixelSize: 18 * Theme.uiScale
font.bold: true
color: Theme.textPrimary
Layout.bottomMargin: 8
Layout.bottomMargin: 16 * Theme.uiScale
}
ColumnLayout {
spacing: 8
Layout.fillWidth: true
Layout.topMargin: 8
Layout.bottomMargin: 8
RowLayout {
spacing: 8
@ -159,6 +157,7 @@ ScrollView {
spacing: 8
Layout.fillWidth: true
Layout.topMargin: 8
Layout.bottomMargin: 8
RowLayout {
spacing: 8
@ -265,6 +264,7 @@ ScrollView {
spacing: 8
Layout.fillWidth: true
Layout.topMargin: 8
Layout.bottomMargin: 8
RowLayout {
spacing: 8
@ -365,11 +365,9 @@ ScrollView {
}
}
}
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}