From 97e1bde96b698cb85cd663c8d4343a6b40da34a3 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Thu, 13 Nov 2025 22:21:29 -0500 Subject: controlcenter: appearance pane tweaks --- .../controlcenter/appearance/AppearancePane.qml | 35 +++++++--------------- 1 file changed, 11 insertions(+), 24 deletions(-) (limited to 'modules/controlcenter/appearance') diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index e4d5892..efd67e9 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -997,47 +997,34 @@ RowLayout { font.bold: true } - StyledText { - Layout.topMargin: Appearance.spacing.large - Layout.alignment: Qt.AlignHCenter - text: qsTr("Theme mode") - font.pointSize: Appearance.font.size.larger - font.weight: 500 - } - - StyledText { - Layout.alignment: Qt.AlignHCenter - text: Colours.currentLight ? qsTr("Light mode") : qsTr("Dark mode") - color: Colours.palette.m3outline - } - StyledText { Layout.topMargin: Appearance.spacing.large Layout.alignment: Qt.AlignHCenter text: qsTr("Wallpaper") - font.pointSize: Appearance.font.size.larger - font.weight: 500 + font.pointSize: Appearance.font.size.extraLarge + font.weight: 600 } StyledText { Layout.alignment: Qt.AlignHCenter text: qsTr("Select a wallpaper") - color: Colours.palette.m3outline + font.pointSize: Appearance.font.size.normal + color: Colours.palette.m3onSurfaceVariant } GridLayout { Layout.fillWidth: true - Layout.topMargin: Appearance.spacing.normal + Layout.topMargin: Appearance.spacing.large Layout.alignment: Qt.AlignHCenter - columns: Math.max(1, Math.floor(parent.width / 200)) + columns: Math.max(2, Math.floor(parent.width / 200)) rowSpacing: Appearance.spacing.normal columnSpacing: Appearance.spacing.normal // Center the grid content Layout.maximumWidth: { const cols = columns; - const itemWidth = 180; + const itemWidth = 200; const spacing = columnSpacing; return cols * itemWidth + (cols - 1) * spacing; } @@ -1048,10 +1035,10 @@ RowLayout { delegate: Item { required property var modelData - Layout.preferredWidth: 180 - Layout.preferredHeight: 120 - Layout.minimumWidth: 180 - Layout.minimumHeight: 120 + Layout.preferredWidth: 200 + Layout.preferredHeight: 140 + Layout.minimumWidth: 200 + Layout.minimumHeight: 140 readonly property bool isCurrent: modelData.path === Wallpapers.actualCurrent readonly property real imageWidth: Math.max(1, width) -- cgit v1.2.3-freya