Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
7a570195
Commit
7a570195
authored
Jul 11, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[notifications] New Notifications screen.
parent
09af10b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
35 deletions
+61
-35
FeedsPage.qml
src/qml/FeedsPage.qml
+61
-35
No files found.
src/qml/FeedsPage.qml
View file @
7a570195
...
...
@@ -22,18 +22,26 @@
// Copyright (c) 2011, Tom Swindell <t.swindell@rubyx.co.uk>
// 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
.
Styles
.
Nemo
1.0
// Feeds page:
// the place for an event feed.
Item
{
Column
{
spacing
:
40
// Day of week
Row
{
id
:
daterow
height
:
120
Label
{
id
:
displayDayOfWeek
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
dddd
"
)
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
dddd
"
)
+
"
,
"
color
:
"
white
"
font.pointSize
:
12
font.bold
:
true
anchors
{
top
:
parent
.
top
left
:
parent
.
left
...
...
@@ -45,27 +53,45 @@ Item {
// Current date
Label
{
id
:
displayCurrentDate
text
:
Qt
.
formatDate
(
wallClock
.
time
,
Qt
.
SystemLocaleShortDate
)
color
:
"
#888888
"
text
:
Qt
.
formatDate
(
wallClock
.
time
,
"
d MMMM yyyy
"
)
font.pointSize
:
12
anchors
{
top
:
displayDayOfWeek
.
bottom
left
:
parent
.
left
topMargin
:
5
leftMargin
:
20
left
:
displayDayOfWeek
.
right
top
:
parent
.
top
topMargin
:
30
}
}
}
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
Rectangle
{
height
:
2
color
:
"
#888888
"
anchors
{
top
:
displayCurrentDate
.
bottom
left
:
parent
.
left
right
:
parent
.
right
topMargin
:
5
leftMargin
:
20
rightMargin
:
20
Label
{
id
:
appSummary
text
:
modelData
.
summary
font.pointSize
:
10
}
Label
{
text
:
modelData
.
body
font.pointSize
:
8
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment