68 lines
No EOL
1.2 KiB
QML
68 lines
No EOL
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
|
|
Item {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
|
|
PanelWindow {
|
|
id: window
|
|
|
|
anchors {
|
|
right: true
|
|
bottom: true
|
|
}
|
|
|
|
margins {
|
|
right: 50
|
|
bottom: 50
|
|
}
|
|
|
|
implicitWidth: content.width
|
|
implicitHeight: content.height
|
|
|
|
color: "transparent"
|
|
mask: Region {}
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
|
|
visible: false
|
|
|
|
ColumnLayout {
|
|
id: content
|
|
|
|
Text {
|
|
text: "Activate Linux"
|
|
color: "#50ffffff"
|
|
font.pointSize: 22
|
|
}
|
|
|
|
Text {
|
|
text: "Go to Settings to activate Linux"
|
|
color: "#50ffffff"
|
|
font.pointSize: 14
|
|
}
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
window.visible = false
|
|
}
|
|
}
|
|
}
|
|
|
|
function show() {
|
|
window.visible = true
|
|
}
|
|
|
|
function hide() {
|
|
window.visible = false
|
|
}
|
|
|
|
function toggle() {
|
|
window.visible = !window.visible
|
|
}
|
|
} |