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

[notifications] New Notifications screen.

parent 09af10b9
...@@ -22,18 +22,26 @@ ...@@ -22,18 +22,26 @@
// 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 {
Column {
spacing: 40
// Day of week // Day of week
Row {
id: daterow
height: 120
Label { Label {
id: displayDayOfWeek id: displayDayOfWeek
text: Qt.formatDateTime(wallClock.time, "dddd") text: Qt.formatDateTime(wallClock.time, "dddd") + ", "
color: "white" color: "white"
font.pointSize: 12
font.bold: true
anchors { anchors {
top: parent.top top: parent.top
left: parent.left left: parent.left
...@@ -45,27 +53,45 @@ Item { ...@@ -45,27 +53,45 @@ Item {
// 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