Commit 7a570195 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[notifications] New Notifications screen.

parent 09af10b9
...@@ -22,50 +22,76 @@ ...@@ -22,50 +22,76 @@
// Copyright (c) 2011, Tom Swindell <t.swindell@rubyx.co.uk> // Copyright (c) 2011, Tom Swindell <t.swindell@rubyx.co.uk>
// Copyright (c) 2012, Timur Kristóf <venemo@fedoraproject.org> // Copyright (c) 2012, Timur Kristóf <venemo@fedoraproject.org>
import QtQuick 2.0 import QtQuick 2.1
import org.nemomobile.lipstick 0.1
import QtQuick.Controls.Nemo 1.0 import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0 import QtQuick.Controls.Styles.Nemo 1.0
// Feeds page: // Feeds page:
// the place for an event feed. // the place for an event feed.
Item { Item {
// Day of week Column {
Label { spacing: 40
id: displayDayOfWeek // Day of week
text: Qt.formatDateTime(wallClock.time, "dddd") Row {
color: "white" id: daterow
anchors { height: 120
top: parent.top Label {
left: parent.left id: displayDayOfWeek
topMargin: 30 text: Qt.formatDateTime(wallClock.time, "dddd") + ", "
leftMargin: 20 color: "white"
} font.pointSize: 12
} font.bold: true
anchors {
top: parent.top
left: parent.left
topMargin: 30
leftMargin: 20
}
}
// Current date // Current date
Label { Label {
id: displayCurrentDate id: displayCurrentDate
text: Qt.formatDate(wallClock.time, Qt.SystemLocaleShortDate) text: Qt.formatDate(wallClock.time, "d MMMM yyyy")
color: "#888888" font.pointSize: 12
anchors { anchors {
top: displayDayOfWeek.bottom left: displayDayOfWeek.right
left: parent.left top: parent.top
topMargin: 5 topMargin: 30
leftMargin: 20 }
}
} }
} Column {
anchors.top: daterow.bottom
spacing: 40
Repeater {
model: NotificationListModel {
id: notifmodel
}
delegate: Row {
spacing: 16
height: 40
Image {
source: {
if (modelData.appIcon)
return "image://theme/" + modelData.appIcon
else
return ""
}
}
// Separator thingy Label {
Rectangle { id: appSummary
height: 2 text: modelData.summary
color: "#888888" font.pointSize: 10
anchors { }
top: displayCurrentDate.bottom Label {
left: parent.left text: modelData.body
right: parent.right font.pointSize: 8
topMargin: 5 }
leftMargin: 20 }
rightMargin: 20 }
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment