Merge lp:~charlesk/indicator-datetime/lp-1370594-refresh-notifications-to-match-design into lp:indicator-datetime/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 380
Merged at revision: 381
Proposed branch: lp:~charlesk/indicator-datetime/lp-1370594-refresh-notifications-to-match-design
Merge into: lp:indicator-datetime/13.10
Diff against target: 43 lines (+6/-5)
3 files modified
include/notifications/notifications.h (+3/-2)
src/notifications.cpp (+1/-1)
src/snap.cpp (+2/-2)
To merge this branch: bzr merge lp:~charlesk/indicator-datetime/lp-1370594-refresh-notifications-to-match-design
Reviewer Review Type Date Requested Status
Nekhelesh Ramananthan (community) Approve
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+235025@code.launchpad.net

Commit message

Make alarm notifications icons and button color match Design's specs.

Description of the change

== Description of the Change

 1. Use the new affirmative-tint hint to color the "OK" button.

 2. Work around unity-notifications bug #1370641 to remove the border around the notification's icon.

I.e., the green button coloring and icon now match design: https://i.imgur.com/Y8SHGnw.png

== Checklist

> Are there any related MPs required for this MP to build/function as expected? Please list.

No

> Is your branch in sync with latest trunk? (e.g. bzr pull lp:trunk -> no changes)

Yes

> Did the code build without warnings?

Yes

> Did the tests run successfully?

Yes

> Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

> If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

N/A

> What device (or emulator) has your component test plan been executed successfully on?

mako + RTM r46

> What manual tests are relevant for this MP?

Run any of the manual tests that involves creating an alarm; e.g. indicator-datetime/snooze, and confirm that the notification's icon and button color look like https://i.imgur.com/Y8SHGnw.png

> Did you include a link to the MR Review Checklist Template to make your reviewer's life easier?

https://wiki.ubuntu.com/Process/Merges/Checklists/indicator-datetime

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Tested on Mako Image 244 and works nicely!

review: Approve
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Please let me confirm with designer tomorrow morning regarding the new visual.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/notifications/notifications.h'
2--- include/notifications/notifications.h 2014-07-30 22:59:52 +0000
3+++ include/notifications/notifications.h 2014-09-17 17:58:35 +0000
4@@ -59,8 +59,9 @@
5 These keys may be dependent on the notification server. */
6 void add_hint (const std::string& name);
7 static constexpr char const * HINT_SNAP {"x-canonical-snap-decisions"};
8- static constexpr char const * HINT_TINT {"x-canonical-private-button-tint"};
9- static constexpr char const * HINT_NONSHAPEDICON {"x-canonical-non-shaped-icon"};
10+ static constexpr char const * HINT_NONSHAPED_ICON {"x-canonical-non-shaped-icon"};
11+ static constexpr char const * HINT_AFFIRMATIVE_HINT {"x-canonical-private-affirmative-tint"};
12+ static constexpr char const * HINT_REJECTION_TINT {"x-canonical-private-rejection-tint"};
13
14 /* Add an action button.
15 This may fail if the Engine doesn't support actions.
16
17=== modified file 'src/notifications.cpp'
18--- src/notifications.cpp 2014-08-08 20:31:49 +0000
19+++ src/notifications.cpp 2014-09-17 17:58:35 +0000
20@@ -198,7 +198,7 @@
21 {
22 notify_notification_set_hint (nn.get(),
23 hint.c_str(),
24- g_variant_new_boolean(true));
25+ g_variant_new_string("true"));
26 }
27
28 for (const auto& action : info.m_actions)
29
30=== modified file 'src/snap.cpp'
31--- src/snap.cpp 2014-09-15 14:56:29 +0000
32+++ src/snap.cpp 2014-09-17 17:58:35 +0000
33@@ -91,8 +91,8 @@
34 b.set_body (appointment.summary);
35 b.set_icon_name ("alarm-clock");
36 b.add_hint (uin::Builder::HINT_SNAP);
37- b.add_hint (uin::Builder::HINT_TINT);
38- b.add_hint (uin::Builder::HINT_NONSHAPEDICON);
39+ b.add_hint (uin::Builder::HINT_AFFIRMATIVE_HINT);
40+ b.add_hint (uin::Builder::HINT_NONSHAPED_ICON);
41
42 const char * timefmt;
43 if (is_locale_12h()) {

Subscribers

People subscribed via source and target branches