feat: add colours page placeholder

This commit is contained in:
2 * r + 2 * t 2026-06-05 22:30:38 +10:00
parent 19a8f4ad45
commit 93a117e2fe
3 changed files with 51 additions and 1 deletions

View file

@ -21,6 +21,9 @@ QtObject {
Component { Component {
WallpaperCategory {} WallpaperCategory {}
} }
Component {
ColourSelect {}
}
} }
} }
] ]

View file

@ -166,7 +166,7 @@ PageBase {
type: IconTextButton.Tonal type: IconTextButton.Tonal
horizontalPadding: Tokens.padding.extraLarge horizontalPadding: Tokens.padding.extraLarge
verticalPadding: Tokens.padding.medium verticalPadding: Tokens.padding.medium
onClicked: ; // TODO onClicked: root.nState.openSubPage(3) // Colours page
} }
} }

View file

@ -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
}
}
}
}