mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 17:47:09 +00:00
52 lines
1.2 KiB
QML
52 lines
1.2 KiB
QML
import qs.components
|
|
import qs.services
|
|
import qs.config
|
|
import Quickshell
|
|
import QtQuick
|
|
|
|
StyledRect {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
required property Session session
|
|
|
|
implicitHeight: text.implicitHeight + Appearance.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: Appearance.font.size.larger
|
|
font.weight: 500
|
|
}
|
|
|
|
Item {
|
|
anchors.right: parent.right
|
|
anchors.top: parent.top
|
|
anchors.margins: Appearance.padding.normal
|
|
|
|
implicitWidth: implicitHeight
|
|
implicitHeight: closeIcon.implicitHeight + Appearance.padding.small
|
|
|
|
StateLayer {
|
|
radius: Appearance.rounding.full
|
|
|
|
function onClicked(): void {
|
|
QsWindow.window.destroy();
|
|
}
|
|
}
|
|
|
|
MaterialIcon {
|
|
id: closeIcon
|
|
|
|
anchors.centerIn: parent
|
|
text: "close"
|
|
}
|
|
}
|
|
}
|