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

Proposed by David Planella
Status: Superseded
Proposed branch: lp:~dpm/reminders-app/clarify-reminders
Merge into: lp:reminders-app
Prerequisite: lp:~dpm/reminders-app/fix-1317977-openssl-exception
Diff against target: 37 lines (+12/-4)
2 files modified
src/app/qml/ui/NotePage.qml (+6/-2)
src/app/qml/ui/NotesPage.qml (+6/-2)
To merge this branch: bzr merge lp:~dpm/reminders-app/clarify-reminders
Reviewer Review Type Date Requested Status
Riccardo Padovani Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+219061@code.launchpad.net

This proposal has been superseded by a proposal from 2014-05-12.

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 :
review: Approve (continuous-integration)
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Seems reasonable. Thanks :-)

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

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 :

> 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.

Unmerged revisions

135. By David Planella

Specified reminder actions explicitly, and update icons accordingly

134. By David Planella

Updated debian copyright with the new license exception

133. By David Planella

Updated all files with the new license exception

132. By David Planella

Initial addition of the OpenSSL linking exception

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 19:55:44 +0000
3+++ src/app/qml/ui/NotePage.qml 2014-05-09 19:55:44 +0000
4@@ -53,8 +53,12 @@
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+ // For some reason this does not work:
12+ //iconName: note.reminder ? "reminder" : "reminder-new"
13+ iconSource: note.reminder ?
14+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder.svg") :
15+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder-new.svg")
16 onTriggered: {
17 pageStack.push(Qt.resolvedUrl("SetReminderPage.qml"), {title: root.title, note: root.note});
18 }
19
20=== modified file 'src/app/qml/ui/NotesPage.qml'
21--- src/app/qml/ui/NotesPage.qml 2014-05-09 19:55:44 +0000
22+++ src/app/qml/ui/NotesPage.qml 2014-05-09 19:55:44 +0000
23@@ -90,8 +90,12 @@
24 }
25 }
26 ToolbarButton {
27- text: root.selectedNote.reminder ? "Reminder (set)" : "Reminder"
28- iconName: "alarm-clock"
29+ text: root.selectedNote.reminder ? i18n.tr("Edit reminder") : i18n.tr("Set reminder")
30+ // For some reason this does not work:
31+ //iconName: root.selectedNote.reminder ? "reminder" : "reminder-new"
32+ iconSource: root.selectedNote.reminder ?
33+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder.svg") :
34+ Qt.resolvedUrl("/usr/share/icons/suru/actions/scalable/reminder-new.svg")
35 visible: root.selectedNote !== null
36 onTriggered: {
37 root.selectedNote.reminder = !root.selectedNote.reminder

Subscribers

People subscribed via source and target branches