47 lines
785 B
QML
47 lines
785 B
QML
import QtQuick
|
|
import Quickshell
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import qs.Widgets
|
|
import qs.Services
|
|
|
|
PanelWindow {
|
|
id: root
|
|
|
|
readonly property real scaling: Scaling.scale(screen)
|
|
property var modelData
|
|
|
|
screen: modelData
|
|
implicitHeight: Style.barHeight * scaling
|
|
color: "transparent"
|
|
|
|
anchors {
|
|
top: true
|
|
left: true
|
|
right: true
|
|
}
|
|
|
|
Item {
|
|
anchors.fill: parent
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: Theme.backgroundPrimary
|
|
layer.enabled: true
|
|
}
|
|
|
|
// Testing widgets
|
|
RowLayout {
|
|
|
|
NIconButton {
|
|
id: demoPanelToggler
|
|
icon: "experiment"
|
|
onClicked: function () {
|
|
demoPanel.visible ? demoPanel.hide() : demoPanel.show()
|
|
}
|
|
}
|
|
|
|
Clock {}
|
|
}
|
|
}
|
|
}
|