mirror of
https://github.com/zoriya/flake.git
synced 2025-12-05 22:26:21 +00:00
38 lines
501 B
QML
38 lines
501 B
QML
import Quickshell
|
|
import QtQuick
|
|
|
|
import qs.utils
|
|
|
|
Scope {
|
|
Variants {
|
|
model: Quickshell.screens
|
|
|
|
delegate: Component {
|
|
PanelWindow {
|
|
required property var modelData
|
|
|
|
screen: modelData
|
|
anchors {
|
|
top: true
|
|
left: true
|
|
right: true
|
|
}
|
|
color: Settings.colors.base
|
|
|
|
implicitHeight: 30
|
|
|
|
Text {
|
|
anchors.centerIn: parent
|
|
|
|
text: Qt.formatDateTime(clock.date, "hh:mm")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
SystemClock {
|
|
id: clock
|
|
precision: SystemClock.Minutes
|
|
}
|
|
}
|