Files
komplex-hub/build/qml/KomplexHubContent/pages/SettingsPage.qml
T
2026-06-02 15:11:36 -04:00

215 lines
8.5 KiB
QML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import KomplexHub
Item {
readonly property bool searchable: false
id: settingsPageRoot
Rectangle {
anchors.fill: parent
color: palette.window
ColumnLayout {
anchors.fill: parent
TabBar {
id: bar
Layout.fillHeight: false
Layout.fillWidth: true
TabButton {
text: qsTr("Wallpaper")
}
TabButton {
text: qsTr("Account")
}
TabButton {
text: qsTr("About")
}
}
StackLayout {
Layout.fillHeight: true
Layout.fillWidth: true
currentIndex: bar.currentIndex
Item {
id: wallpaperTab
Layout.fillHeight: true
Layout.fillWidth: true
WallpaperSettingsPage {
anchors.fill: parent
}
}
Item {
id: accountTab
Layout.fillHeight: true
Layout.fillWidth: true
UserProfilePage {
anchors.fill: parent
}
}
Item {
Layout.fillHeight: true
Layout.fillWidth: true
property string title: qsTr("Hello!")
property string contributors: qsTr("DigitalArtifex
fridje")
property string thanks: qsTr("Icons8
ShaderToy
Pexels")
property color color: palette.window
id: keroHelloAvatarRoot
Rectangle {
id: keroHelloAvatarBackground
anchors.fill: parent
color: keroHelloAvatarRoot.color
ColumnLayout {
anchors.fill: parent
Rectangle {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.minimumWidth: 64
Layout.minimumHeight: 64
Layout.maximumWidth: 512
Layout.maximumHeight: 512
Layout.alignment: Qt.AlignCenter
color: "transparent"
Image {
anchors.fill: parent
source: "../images/kero/kero_hello.png"
antialiasing: true
fillMode: Image.PreserveAspectFit
}
ColumnLayout {
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
Text {
color: palette.text
text: keroHelloAvatarRoot.title
font.pixelSize: Constants.largeFont.pixelSize * 1.5
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
}
}
}
Item { Layout.fillHeight: true }
Text {
Layout.fillHeight: false
Layout.fillWidth: true
text: qsTr("Meet Kero, the small but tireless spirit behind Komplex, a curious little dragon whose name echoes the cheerful sound of a frogs call. Hailing from the realm of **Kairoku**, Kero honed his skill in a place where unfinished ideas drift like clouds and raw creativity hums in the air.")
color: palette.text.darker()
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
Layout.bottomMargin: Constants.largeMargin
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
}
Text {
Layout.fillHeight: false
Layout.fillWidth: true
text: qsTr("In Kairoku, landscapes arent painted...theyre assembled, animated, and brought to life through careful craftsmanship. Kero was once an apprentice there, learning how to shape reactive skies, breathing forests, and shimmering cityscapes. With his trusty tools and a builders instinct, he became known for turning even the simplest concept into something that felt alive.")
color: palette.text.darker()
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
Layout.bottomMargin: Constants.largeMargin
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
}
Item { Layout.fillHeight: true }
RowLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop | Qt.AlignRight
ColumnLayout {
Layout.alignment: Qt.AlignTop | Qt.AlignRight
Layout.margins: Constants.largeMargin
Layout.fillHeight: true
Text {
text: qsTr("Contributors")
color: palette.text.darker()
font: Constants.h5Font
Layout.alignment: Qt.AlignTop
Layout.bottomMargin: Constants.largeMargin
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
}
Text {
id: contributorText
text: keroHelloAvatarRoot.contributors
color: palette.text.darker()
Layout.alignment: Qt.AlignBottom
Layout.bottomMargin: Constants.largeMargin
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
}
}
ColumnLayout {
Layout.alignment: Qt.AlignTop | Qt.AlignRight
Layout.margins: Constants.largeMargin
Layout.fillHeight: true
Text {
text: qsTr("Special Thanks")
color: palette.text.darker()
font: Constants.h5Font
Layout.alignment: Qt.AlignTop
Layout.bottomMargin: Constants.largeMargin
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
}
Text {
id: thanksText
text: keroHelloAvatarRoot.thanks
color: palette.text.darker()
Layout.alignment: Qt.AlignBottom
Layout.bottomMargin: Constants.largeMargin
wrapMode: Text.WordWrap
textFormat: Text.MarkdownText
}
}
}
}
}
}
}
}
}
}