87 lines
2.2 KiB
QML
87 lines
2.2 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
import qs.widgets
|
|
import qs.services
|
|
import qs.config
|
|
import Quickshell
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Effects
|
|
|
|
Item {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
property alias active: session.active
|
|
readonly property Session session: Session {
|
|
id: session
|
|
}
|
|
|
|
implicitWidth: implicitHeight * Config.dcontent.sizes.ratio
|
|
implicitHeight: screen.height * Config.dcontent.sizes.heightMult
|
|
|
|
RowLayout {
|
|
anchors.fill: parent
|
|
|
|
spacing: 0
|
|
|
|
StyledRect {
|
|
Layout.fillHeight: true
|
|
|
|
topLeftRadius: Appearance.rounding.normal
|
|
bottomLeftRadius: Appearance.rounding.normal
|
|
implicitWidth: navRail.implicitWidth
|
|
color: Colours.palette.m3surfaceContainer
|
|
|
|
NavRail {
|
|
id: navRail
|
|
|
|
session: root.session
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
StyledText {
|
|
anchors.centerIn: parent
|
|
text: qsTr("Work in progress")
|
|
color: Colours.palette.m3outline
|
|
font.pointSize: Appearance.font.size.extraLarge
|
|
font.weight: 500
|
|
}
|
|
|
|
StyledRect {
|
|
anchors.fill: parent
|
|
color: Colours.palette.m3surfaceContainer
|
|
topRightRadius: Appearance.rounding.normal
|
|
bottomRightRadius: Appearance.rounding.normal
|
|
|
|
layer.enabled: true
|
|
layer.effect: MultiEffect {
|
|
maskSource: mask
|
|
maskEnabled: true
|
|
maskInverted: true
|
|
maskThresholdMin: 0.5
|
|
maskSpreadAtMin: 1
|
|
}
|
|
}
|
|
|
|
Item {
|
|
id: mask
|
|
|
|
anchors.fill: parent
|
|
layer.enabled: true
|
|
visible: false
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
anchors.margins: Appearance.padding.normal
|
|
anchors.leftMargin: 0
|
|
radius: Appearance.rounding.small
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|