70 lines
1.3 KiB
QML
70 lines
1.3 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
|
|
ShellRoot {
|
|
// Add a property to control activation widget visibility
|
|
property bool isActivationWidgetVisible: false
|
|
|
|
Variants {
|
|
// Create the panel once on each monitor.
|
|
model: Quickshell.screens
|
|
|
|
PanelWindow {
|
|
id: w
|
|
|
|
property var modelData
|
|
screen: modelData
|
|
|
|
anchors {
|
|
right: true
|
|
bottom: true
|
|
}
|
|
|
|
margins {
|
|
right: 50
|
|
bottom: 50
|
|
}
|
|
|
|
implicitWidth: content.width
|
|
implicitHeight: content.height
|
|
|
|
color: "transparent"
|
|
|
|
// Give the window an empty click mask so all clicks pass through it.
|
|
mask: Region {}
|
|
|
|
// Use the wlroots specific layer property to ensure it displays over
|
|
// fullscreen windows.
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
|
|
// Only show when isActivationWidgetVisible is true
|
|
visible: root.isActivationWidgetVisible
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
// Add a click handler to close the widget
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
root.isActivationWidgetVisible = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|