Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Clock.qml
Show All 39 Lines | 31 | DropShadow { | |||
---|---|---|---|---|---|
40 | color: ColorScope.backgroundColor | 40 | color: ColorScope.backgroundColor | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | ColumnLayout { | 43 | ColumnLayout { | ||
44 | id: clock | 44 | id: clock | ||
45 | Label { | 45 | Label { | ||
46 | text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) | 46 | text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) | ||
47 | font.pointSize: 48 | 47 | font.pointSize: 48 | ||
48 | font.weight: Font.Light | | |||
49 | Layout.alignment: Qt.AlignHCenter | 48 | Layout.alignment: Qt.AlignHCenter | ||
50 | } | 49 | } | ||
51 | Label { | 50 | Label { | ||
52 | text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) | 51 | text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) | ||
53 | font.pointSize: 24 | 52 | font.pointSize: 24 | ||
54 | font.weight: Font.Light | | |||
55 | Layout.alignment: Qt.AlignHCenter | 53 | Layout.alignment: Qt.AlignHCenter | ||
56 | } | 54 | } | ||
57 | DataSource { | 55 | DataSource { | ||
58 | id: timeSource | 56 | id: timeSource | ||
59 | engine: "time" | 57 | engine: "time" | ||
60 | connectedSources: ["Local"] | 58 | connectedSources: ["Local"] | ||
61 | interval: 1000 | 59 | interval: 1000 | ||
62 | } | 60 | } | ||
63 | } | 61 | } | ||
64 | } | 62 | } |