From 93a117e2fefeacdbf47b9af73a065b9cdd949c63 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 5 Jun 2026 22:30:38 +1000 Subject: [PATCH] feat: add colours page placeholder --- modules/nexus/PageCompRegistry.qml | 3 ++ modules/nexus/pages/WallpaperAndStyle.qml | 2 +- .../nexus/pages/wallandstyle/ColourSelect.qml | 47 +++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 modules/nexus/pages/wallandstyle/ColourSelect.qml diff --git a/modules/nexus/PageCompRegistry.qml b/modules/nexus/PageCompRegistry.qml index 13d104fe..d4b52438 100644 --- a/modules/nexus/PageCompRegistry.qml +++ b/modules/nexus/PageCompRegistry.qml @@ -21,6 +21,9 @@ QtObject { Component { WallpaperCategory {} } + Component { + ColourSelect {} + } } } ] diff --git a/modules/nexus/pages/WallpaperAndStyle.qml b/modules/nexus/pages/WallpaperAndStyle.qml index 57a9f850..98a5e413 100644 --- a/modules/nexus/pages/WallpaperAndStyle.qml +++ b/modules/nexus/pages/WallpaperAndStyle.qml @@ -166,7 +166,7 @@ PageBase { type: IconTextButton.Tonal horizontalPadding: Tokens.padding.extraLarge verticalPadding: Tokens.padding.medium - onClicked: ; // TODO + onClicked: root.nState.openSubPage(3) // Colours page } } diff --git a/modules/nexus/pages/wallandstyle/ColourSelect.qml b/modules/nexus/pages/wallandstyle/ColourSelect.qml new file mode 100644 index 00000000..e7816d0b --- /dev/null +++ b/modules/nexus/pages/wallandstyle/ColourSelect.qml @@ -0,0 +1,47 @@ +import QtQuick +import QtQuick.Layouts +import Caelestia.Config +import qs.components +import qs.services +import qs.modules.nexus.common + +PageBase { + id: root + + title: qsTr("Colours") + isSubPage: true + + Item { + anchors.horizontalCenter: parent.horizontalCenter + implicitHeight: { + const f = parent.parent as Flickable; + return f.height - f.topMargin - f.bottomMargin; + } + + ColumnLayout { + anchors.centerIn: parent + spacing: Tokens.padding.extraSmall + + MaterialIcon { + Layout.alignment: Qt.AlignHCenter + text: "handyman" + color: Colours.palette.m3outlineVariant + font: Tokens.font.icon.extraLarge + } + + StyledText { + Layout.alignment: Qt.AlignHCenter + text: qsTr("Page under construction") + color: Colours.palette.m3outlineVariant + font: Tokens.font.title.large + } + + StyledText { + Layout.alignment: Qt.AlignHCenter + text: qsTr("This page will be available in a future update.") + color: Colours.palette.m3outlineVariant + font: Tokens.font.body.large + } + } + } +}