feat: add colours page placeholder
This commit is contained in:
parent
19a8f4ad45
commit
93a117e2fe
3 changed files with 51 additions and 1 deletions
|
|
@ -21,6 +21,9 @@ QtObject {
|
||||||
Component {
|
Component {
|
||||||
WallpaperCategory {}
|
WallpaperCategory {}
|
||||||
}
|
}
|
||||||
|
Component {
|
||||||
|
ColourSelect {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
47
modules/nexus/pages/wallandstyle/ColourSelect.qml
Normal file
47
modules/nexus/pages/wallandstyle/ColourSelect.qml
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue