a big clock

this should become an applet too
This commit is contained in:
Marco Martin 2015-02-24 16:45:17 +01:00
parent 6ef98bdb2d
commit 563e306225

View file

@ -217,6 +217,12 @@ MouseEventListener {
anchors.fill: parent
}
PlasmaCore.DataSource {
id: timeSource
engine: "time"
connectedSources: ["Local"]
interval: 60 * 1000
}
PlasmaCore.DataSource {
id: notificationsSource
@ -317,13 +323,6 @@ MouseEventListener {
anchors.fill: parent
color: Qt.rgba(0, 0, 0, 0.7)
PlasmaCore.DataSource {
id: timeSource
engine: "time"
connectedSources: ["Local"]
interval: 500
}
PlasmaCore.IconItem {
id: strengthIcon
colorGroup: PlasmaCore.ColorScope.colorGroup
@ -438,6 +437,23 @@ MouseEventListener {
z: 999
width: homescreen.width
height: homescreen.height
PlasmaComponents.Label {
id: bigClock
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
bottom: notificationView.top
}
text: Qt.formatTime(timeSource.data.Local.DateTime, "hh:mm")
color: PlasmaCore.ColorScope.textColor
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
font.pointSize: 40
style: Text.Raised
styleColor: "black"
}
ListView {
id: notificationView
spacing: units.smallSpacing