Notifications should hint if they shouldn't be Ubuntu-Shaped
Bug #1200569 reported by
Mirco Müller
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Won't Fix
|
Wishlist
|
Unassigned | ||
unity-notifications |
Fix Released
|
Undecided
|
Unassigned | ||
unity-api (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
unity-notifications (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
unity8 (Ubuntu) |
Fix Released
|
Medium
|
Mirco Müller |
Bug Description
UbuntuShape should allow to skip the masking and shadow-drawing for an image with an alpha-channel, making it act like a regular Image-item.
Some early discussion has happened already and further feedback from Design is required too. In a first iteration a "skip-on-
Typical use-case scenarios are:
* clipart-like avatars used in notifications and people-lens
* image-only confirmation notifications
* value-image confirmation notifications
Related branches
lp://staging/~macslow/unity8/fix-1200569
- PS Jenkins bot (community): Approve (continuous-integration)
- Michael Zanetti (community): Approve
- Michał Sawicz: Needs Fixing
-
Diff: 211 lines (+99/-7)3 files modifiedNotifications/Notification.qml (+3/-7)
Notifications/ShapedIcon.qml (+40/-0)
tests/qmltests/Notifications/tst_Notifications.qml (+56/-0)
lp://staging/~macslow/unity-notifications/fix-1200569
- PS Jenkins bot (community): Approve (continuous-integration)
- Michael Zanetti (community): Approve
-
Diff: 193 lines (+68/-7)10 files modifiedexamples/example.py (+4/-1)
examples/non-shaped-icon-summary-body.py (+56/-0)
examples/sd-example-incoming-file.py (+1/-0)
examples/sd-example-morning-alarm.py (+1/-0)
examples/sd-example-much-body-text.py (+1/-0)
examples/sd-example-password-entry.py (+1/-0)
examples/sd-example-user-auth.py (+1/-0)
examples/sd-example-using-button-tint-hint.py (+1/-0)
include/notify-backend.h.in (+1/-0)
src/NotificationServer.cpp (+1/-6)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Wishlist |
summary: |
- UbuntuShape should skip masking if image has an alpha-channel + [shape] UbuntuShape should skip masking if image has an alpha-channel |
Changed in unity8: | |
status: | New → Triaged |
assignee: | nobody → Mirco Müller (macslow) |
Changed in unity8: | |
importance: | Undecided → Medium |
Changed in unity8: | |
status: | Triaged → In Progress |
Changed in unity-notifications: | |
status: | Incomplete → In Progress |
tags: | added: needs-test |
Changed in unity8: | |
status: | Fix Committed → Fix Released |
Changed in unity-notifications (Ubuntu): | |
status: | New → Fix Committed |
Changed in unity-notifications: | |
status: | Fix Committed → Fix Released |
Changed in unity-api (Ubuntu): | |
status: | New → Incomplete |
no longer affects: | unity-api (Ubuntu) |
affects: | unity-api → unity-api (Ubuntu) |
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Mirco Müller (macslow) |
importance: | Undecided → Medium |
no longer affects: | unity8 |
To post a comment you must log in.
<loicm>
The statistical variance of the alpha channel (how far the set of alpha
values is spread out) should provide a better check for false positives.
It's fast to compute (CPU-cached sequential memory reads, branch free)
and depends on the size of the image.
For now the UbuntuShape simply shapes the image keeping its alpha
channel unchanged. I'm currently making it possible to blend it over a
specific color or over another image [1]. I think we should ask the
design team what behaviour they expect for such images in the case of
the notification system and decide what to do based on that.
Loïc
[1] https:/ /bugs.launchpad .net/ubuntu- ui-toolkit/ +bug/1157720