Merge lp:~dpm/reminders-app/clarify-reminders-take2 into lp:reminders-app

Proposed by David Planella
Status: Merged
Approved by: Francis Ginther
Approved revision: 136
Merged at revision: 136
Proposed branch: lp:~dpm/reminders-app/clarify-reminders-take2
Merge into: lp:reminders-app
Diff against target: 39 lines (+14/-4)
2 files modified
src/app/qml/ui/NotePage.qml (+7/-2)
src/app/qml/ui/NotesPage.qml (+7/-2)
To merge this branch: bzr merge lp:~dpm/reminders-app/clarify-reminders-take2
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Michael Zanetti (community) Approve
Riccardo Padovani Pending
Review via email: mp+219170@code.launchpad.net

This proposal supersedes a proposal from 2014-05-09.

Commit message

Specified reminder actions explicitly, and update icons accordingly

Description of the change

Specified reminder actions explicitly, and update icons accordingly

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Riccardo Padovani (rpadovani) wrote : Posted in a previous version of this proposal

Seems reasonable. Thanks :-)

review: Approve
Revision history for this message
David Planella (dpm) wrote : Posted in a previous version of this proposal

So to add some more context, I've found out why the icon name cannot be set. It seems that the reminder icon is only available in the suru theme.

Both suru and ubuntu-mobile-icons are installed by default on the phone, but the toolkit has not switched to suru yet and is still looking for the icons only on the ubuntu-mobile-icons theme. I'd suggest to leave the hardcoded path for now and fix it to an icon name once the toolkit switches to suru.

Revision history for this message
Michael Zanetti (mzanetti) wrote : Posted in a previous version of this proposal

> So to add some more context, I've found out why the icon name cannot be set.
> It seems that the reminder icon is only available in the suru theme.
>
> Both suru and ubuntu-mobile-icons are installed by default on the phone, but
> the toolkit has not switched to suru yet and is still looking for the icons
> only on the ubuntu-mobile-icons theme. I'd suggest to leave the hardcoded path
> for now and fix it to an icon name once the toolkit switches to suru.

please mark the comment with the string "TODO:" or "FIXME:" so we can find those things later.

Revision history for this message
David Planella (dpm) wrote :

Done: updated comment with TODO

Revision history for this message
Michael Zanetti (mzanetti) wrote :

lgtm

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/qml/ui/NotePage.qml'
2--- src/app/qml/ui/NotePage.qml 2014-05-09 09:02:54 +0000
3+++ src/app/qml/ui/NotePage.qml 2014-05-12 11:12:18 +0000
4@@ -39,8 +39,13 @@
5 }
6 ToolbarSpacer {}
7 ToolbarButton {
8- text: note.reminder ? "Reminder (set)" : "Reminder"
9- iconName: "alarm-clock"
10+ text: note.reminder ? i18n.tr("Edit reminder") : i18n.tr("Set reminder")
11+ // TODO: use this instead when the toolkit switches from using the
12+ // ubuntu-mobile-icons theme to suru:
13+ //iconName: note.reminder ? "reminder" : "reminder-new"
14+ iconSource: note.reminder ?
15+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder.svg") :
16+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder-new.svg")
17 onTriggered: {
18 pageStack.push(Qt.resolvedUrl("SetReminderPage.qml"), {title: root.title, note: root.note});
19 }
20
21=== modified file 'src/app/qml/ui/NotesPage.qml'
22--- src/app/qml/ui/NotesPage.qml 2014-05-09 09:05:32 +0000
23+++ src/app/qml/ui/NotesPage.qml 2014-05-12 11:12:18 +0000
24@@ -76,8 +76,13 @@
25 }
26 }
27 ToolbarButton {
28- text: root.selectedNote.reminder ? "Reminder (set)" : "Reminder"
29- iconName: "alarm-clock"
30+ text: root.selectedNote.reminder ? i18n.tr("Edit reminder") : i18n.tr("Set reminder")
31+ // TODO: use this instead when the toolkit switches from using the
32+ // ubuntu-mobile-icons theme to suru:
33+ //iconName: root.selectedNote.reminder ? "reminder" : "reminder-new"
34+ iconSource: root.selectedNote.reminder ?
35+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder.svg") :
36+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder-new.svg")
37 visible: root.selectedNote !== null
38 onTriggered: {
39 root.selectedNote.reminder = !root.selectedNote.reminder

Subscribers

People subscribed via source and target branches