mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 10:33:34 +00:00
26 lines
597 B
QML
26 lines
597 B
QML
import QtQuick
|
|
import qs.Commons
|
|
import qs.Services
|
|
import Quickshell
|
|
|
|
Item {
|
|
id: clockRoot
|
|
|
|
property var now
|
|
|
|
height: Math.round((Style.fontSizeXXXL * 1.9) / 2 * Style.uiScaleRatio) * 2
|
|
width: clockRoot.height
|
|
|
|
Loader {
|
|
id: clockLoader
|
|
anchors.fill: parent
|
|
|
|
source: Settings.data.location.analogClockInCalendar ? "AnalogClock.qml" : "DigitalClock.qml"
|
|
|
|
onLoaded: {
|
|
// Bind the loaded item's 'now' property to *this* component's 'now' property
|
|
item.now = Qt.binding(function() { return clockRoot.now })
|
|
}
|
|
}
|
|
}
|