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
32b7b3bd
Commit
32b7b3bd
authored
Sep 17, 2017
by
eekkelund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Notification] Try to fix icon in notification preview.
parent
945900fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
NotificationPreview.qml
src/qml/notifications/NotificationPreview.qml
+12
-10
No files found.
src/qml/notifications/NotificationPreview.qml
View file @
32b7b3bd
...
@@ -132,16 +132,18 @@ Item {
...
@@ -132,16 +132,18 @@ Item {
width
:
notificationArea
.
notificationIconSize
width
:
notificationArea
.
notificationIconSize
height
:
width
height
:
width
source
:
{
source
:
{
if
(
notificationPreviewPresenter
.
notification
.
icon
)
{
if
(
notificationPreviewPresenter
.
notification
)
{
if
(
notificationPreviewPresenter
.
notification
.
icon
.
indexOf
(
"
/
"
)
==
0
)
if
(
notificationPreviewPresenter
.
notification
.
icon
)
{
return
"
file://
"
+
notificationPreviewPresenter
.
notification
.
icon
if
(
notificationPreviewPresenter
.
notification
.
icon
.
indexOf
(
"
/
"
)
==
0
)
else
return
"
file://
"
+
notificationPreviewPresenter
.
notification
.
icon
return
"
image://theme/
"
+
notificationPreviewPresenter
.
notification
.
icon
else
}
else
if
(
notificationPreviewPresenter
.
notification
.
appIcon
)
{
return
"
image://theme/
"
+
notificationPreviewPresenter
.
notification
.
icon
if
(
notificationPreviewPresenter
.
notification
.
appIcon
.
indexOf
(
"
/
"
)
==
0
)
}
else
if
(
notificationPreviewPresenter
.
notification
.
appIcon
)
{
return
"
file://
"
+
notificationPreviewPresenter
.
notification
.
appIcon
if
(
notificationPreviewPresenter
.
notification
.
appIcon
.
indexOf
(
"
/
"
)
==
0
)
else
return
"
file://
"
+
notificationPreviewPresenter
.
notification
.
appIcon
return
"
image://theme/
"
+
notificationPreviewPresenter
.
notification
.
appIcon
else
return
"
image://theme/
"
+
notificationPreviewPresenter
.
notification
.
appIcon
}
else
return
defaultIcon
}
else
return
defaultIcon
}
else
return
defaultIcon
}
}
onStatusChanged
:
{
onStatusChanged
:
{
...
...
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