51 lines
1.1 KiB
QML
51 lines
1.1 KiB
QML
import QtQuick
|
|
import Quickshell
|
|
import Caelestia.Config
|
|
import qs.components
|
|
import qs.services
|
|
|
|
StyledRect {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
required property Session session
|
|
|
|
implicitHeight: text.implicitHeight + Tokens.padding.normal
|
|
color: Colours.tPalette.m3surfaceContainer
|
|
|
|
StyledText {
|
|
id: text
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.bottom: parent.bottom
|
|
|
|
text: qsTr("Caelestia Settings - %1").arg(root.session.active)
|
|
font.capitalization: Font.Capitalize
|
|
font.pointSize: Tokens.font.size.larger
|
|
font.weight: 500
|
|
}
|
|
|
|
Item {
|
|
anchors.right: parent.right
|
|
anchors.top: parent.top
|
|
anchors.margins: Tokens.padding.normal
|
|
|
|
implicitWidth: implicitHeight
|
|
implicitHeight: closeIcon.implicitHeight + Tokens.padding.small
|
|
|
|
StateLayer {
|
|
onClicked: {
|
|
QsWindow.window.destroy();
|
|
}
|
|
|
|
radius: Tokens.rounding.full
|
|
}
|
|
|
|
MaterialIcon {
|
|
id: closeIcon
|
|
|
|
anchors.centerIn: parent
|
|
text: "close"
|
|
}
|
|
}
|
|
}
|