Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/Clock.qml
Show All 21 Lines | |||||
22 | 22 | | |||
23 | import org.kde.plasma.core 2.0 | 23 | import org.kde.plasma.core 2.0 | ||
24 | import org.kde.plasma.components 2.0 | 24 | import org.kde.plasma.components 2.0 | ||
25 | 25 | | |||
26 | ColumnLayout { | 26 | ColumnLayout { | ||
27 | Label { | 27 | Label { | ||
28 | text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) | 28 | text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) | ||
29 | font.pointSize: 48 //Mockup says this, I'm not sure what to do? | 29 | font.pointSize: 48 //Mockup says this, I'm not sure what to do? | ||
30 | font.weight: Font.Light | | |||
31 | Layout.alignment: Qt.AlignHCenter | 30 | Layout.alignment: Qt.AlignHCenter | ||
32 | renderType: Text.QtRendering | 31 | renderType: Text.QtRendering | ||
32 | style: Text.Outline | ||||
33 | styleColor: "#4d4d4d" // Breeze Icon Grey | ||||
33 | } | 34 | } | ||
34 | Label { | 35 | Label { | ||
35 | text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) | 36 | text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) | ||
36 | font.pointSize: 24 | 37 | font.pointSize: 24 | ||
37 | font.weight: Font.Light | | |||
38 | Layout.alignment: Qt.AlignHCenter | 38 | Layout.alignment: Qt.AlignHCenter | ||
39 | style: Text.Outline | ||||
40 | styleColor: "#4d4d4d" // Breeze Icon Grey | ||||
39 | } | 41 | } | ||
40 | DataSource { | 42 | DataSource { | ||
41 | id: timeSource | 43 | id: timeSource | ||
42 | engine: "time" | 44 | engine: "time" | ||
43 | connectedSources: ["Local"] | 45 | connectedSources: ["Local"] | ||
44 | interval: 1000 | 46 | interval: 1000 | ||
45 | } | 47 | } | ||
46 | } | 48 | } |