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
adbe1224
Commit
adbe1224
authored
May 31, 2017
by
m2ko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix FeedsPage scaling and make NotificationItem better looking and scaled
parent
8b2c870f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
20 deletions
+37
-20
FeedsPage.qml
src/qml/FeedsPage.qml
+7
-6
NotificationItem.qml
src/qml/notifications/NotificationItem.qml
+30
-14
No files found.
src/qml/FeedsPage.qml
View file @
adbe1224
...
@@ -49,6 +49,8 @@ Flickable {
...
@@ -49,6 +49,8 @@ Flickable {
anchors
{
anchors
{
top
:
parent
.
top
top
:
parent
.
top
horizontalCenter
:
parent
.
horizontalCenter
horizontalCenter
:
parent
.
horizontalCenter
topMargin
:
Theme
.
itemSpacingLarge
bottomMargin
:
Theme
.
itemSpacingLarge
}
}
color
:
"
transparent
"
color
:
"
transparent
"
...
@@ -56,13 +58,12 @@ Flickable {
...
@@ -56,13 +58,12 @@ Flickable {
Label
{
Label
{
id
:
displayDayOfWeek
id
:
displayDayOfWeek
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
dddd
"
)
+
"
,
"
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
dddd
"
)
+
"
,
"
color
:
"
white
"
color
:
Theme
.
textColor
font.p
ointSize
:
12
font.p
ixelSize
:
Theme
.
fontSizeExtraLarge
font.bold
:
true
font.bold
:
true
anchors
{
anchors
{
top
:
parent
.
top
top
:
parent
.
top
left
:
parent
.
left
left
:
parent
.
left
topMargin
:
30
}
}
}
}
...
@@ -70,12 +71,12 @@ Flickable {
...
@@ -70,12 +71,12 @@ Flickable {
Label
{
Label
{
id
:
displayCurrentDate
id
:
displayCurrentDate
text
:
Qt
.
formatDate
(
wallClock
.
time
,
"
d MMMM yyyy
"
)
text
:
Qt
.
formatDate
(
wallClock
.
time
,
"
d MMMM yyyy
"
)
font.pointSize
:
12
font.pixelSize
:
Theme
.
fontSizeExtraLarge
color
:
Theme
.
textColor
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
anchors
{
anchors
{
left
:
displayDayOfWeek
.
right
left
:
displayDayOfWeek
.
right
top
:
parent
.
top
top
:
parent
.
top
topMargin
:
30
}
}
}
}
}
}
...
@@ -87,7 +88,7 @@ Flickable {
...
@@ -87,7 +88,7 @@ Flickable {
top
:
daterow
.
bottom
top
:
daterow
.
bottom
topMargin
:
50
topMargin
:
50
}
}
spacing
:
10
spacing
:
Theme
.
itemSpacingHuge
Repeater
{
Repeater
{
model
:
NotificationListModel
{
model
:
NotificationListModel
{
id
:
notifmodel
id
:
notifmodel
...
...
src/qml/notifications/NotificationItem.qml
View file @
adbe1224
...
@@ -16,12 +16,12 @@ MouseArea {
...
@@ -16,12 +16,12 @@ MouseArea {
Image
{
Image
{
id
:
appIcon
id
:
appIcon
height
:
100
height
:
Theme
.
itemHeightExtraLarge
width
:
height
width
:
height
anchors
{
anchors
{
left
:
parent
.
left
left
:
parent
.
left
leftMargin
:
20
leftMargin
:
Theme
.
itemSpacingLarge
}
}
source
:
{
source
:
{
...
@@ -31,32 +31,48 @@ MouseArea {
...
@@ -31,32 +31,48 @@ MouseArea {
return
"
/usr/share/lipstick-glacier-home-qt5/qml/images/glacier.svg
"
return
"
/usr/share/lipstick-glacier-home-qt5/qml/images/glacier.svg
"
}
}
}
}
Label
{
id
:
appName
text
:
modelData
.
appName
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeMedium
font.capitalization
:
Font
.
AllUppercase
font.bold
:
true
anchors
{
left
:
appIcon
.
right
top
:
parent
.
top
leftMargin
:
Theme
.
itemSpacingLarge
}
}
Label
{
Label
{
id
:
appSummary
id
:
appSummary
text
:
modelData
.
summary
text
:
modelData
.
summary
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
40
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
font.pointSize
:
12
color
:
Theme
.
textColor
font.bold
:
true
font.pixelSize
:
Theme
.
fontSizeLarge
font.capitalization
:
Font
.
AllUppercase
//font.bold :true
//font.capitalization: Font.AllUppercase
anchors
{
anchors
{
left
:
app
Icon
.
righ
t
left
:
app
Name
.
lef
t
leftMargin
:
20
top
:
appName
.
bottom
top
:
parent
.
top
top
Margin
:
Theme
.
itemSpacingSmall
}
}
wrapMode
:
Text
.
Wrap
elide
:
Text
.
ElideRight
}
}
Label
{
Label
{
id
:
appBody
id
:
appBody
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
40
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
text
:
modelData
.
body
text
:
modelData
.
body
font.pointSize
:
14
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeMedium
anchors
{
anchors
{
left
:
app
Summary
.
left
left
:
app
Name
.
left
top
:
appSummary
.
bottom
top
:
appSummary
.
bottom
}
}
wrapMode
:
Text
.
Wrap
elide
:
Text
.
ElideRight
}
}
}
}
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