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 {
anchors
{
top
:
parent
.
top
horizontalCenter
:
parent
.
horizontalCenter
topMargin
:
Theme
.
itemSpacingLarge
bottomMargin
:
Theme
.
itemSpacingLarge
}
color
:
"
transparent
"
...
...
@@ -56,13 +58,12 @@ Flickable {
Label
{
id
:
displayDayOfWeek
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
dddd
"
)
+
"
,
"
color
:
"
white
"
font.p
ointSize
:
12
color
:
Theme
.
textColor
font.p
ixelSize
:
Theme
.
fontSizeExtraLarge
font.bold
:
true
anchors
{
top
:
parent
.
top
left
:
parent
.
left
topMargin
:
30
}
}
...
...
@@ -70,12 +71,12 @@ Flickable {
Label
{
id
:
displayCurrentDate
text
:
Qt
.
formatDate
(
wallClock
.
time
,
"
d MMMM yyyy
"
)
font.pointSize
:
12
font.pixelSize
:
Theme
.
fontSizeExtraLarge
color
:
Theme
.
textColor
wrapMode
:
Text
.
WordWrap
anchors
{
left
:
displayDayOfWeek
.
right
top
:
parent
.
top
topMargin
:
30
}
}
}
...
...
@@ -87,7 +88,7 @@ Flickable {
top
:
daterow
.
bottom
topMargin
:
50
}
spacing
:
10
spacing
:
Theme
.
itemSpacingHuge
Repeater
{
model
:
NotificationListModel
{
id
:
notifmodel
...
...
src/qml/notifications/NotificationItem.qml
View file @
adbe1224
...
...
@@ -16,12 +16,12 @@ MouseArea {
Image
{
id
:
appIcon
height
:
100
height
:
Theme
.
itemHeightExtraLarge
width
:
height
anchors
{
left
:
parent
.
left
leftMargin
:
20
leftMargin
:
Theme
.
itemSpacingLarge
}
source
:
{
...
...
@@ -31,32 +31,48 @@ MouseArea {
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
{
id
:
appSummary
text
:
modelData
.
summary
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
40
font.pointSize
:
12
font.bold
:
true
font.capitalization
:
Font
.
AllUppercase
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeLarge
//font.bold :true
//font.capitalization: Font.AllUppercase
anchors
{
left
:
app
Icon
.
righ
t
leftMargin
:
20
top
:
parent
.
top
left
:
app
Name
.
lef
t
top
:
appName
.
bottom
top
Margin
:
Theme
.
itemSpacingSmall
}
wrapMode
:
Text
.
Wrap
elide
:
Text
.
ElideRight
}
Label
{
id
:
appBody
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
40
width
:
(
rootitem
.
width
-
appIcon
.
width
)
-
Theme
.
itemSpacingHuge
text
:
modelData
.
body
font.pointSize
:
14
color
:
Theme
.
textColor
font.pixelSize
:
Theme
.
fontSizeMedium
anchors
{
left
:
app
Summary
.
left
left
:
app
Name
.
left
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