Merge lp:~dpm/reminders-app/reminder-page-layout into lp:reminders-app

Proposed by David Planella
Status: Merged
Approved by: David Planella
Approved revision: 274
Merged at revision: 276
Proposed branch: lp:~dpm/reminders-app/reminder-page-layout
Merge into: lp:reminders-app
Diff against target: 75 lines (+27/-31)
1 file modified
src/app/qml/ui/SetReminderView.qml (+27/-31)
To merge this branch: bzr merge lp:~dpm/reminders-app/reminder-page-layout
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Riccardo Padovani Approve
Review via email: mp+238072@code.launchpad.net

Commit message

Fixes layout for long translations of the buttons in the Set Reminder page.

Description of the change

Fixes layout for long translations of the buttons in the Set Reminder page (see bug 1379888).

Buttons are now in a column rather than a row, leaving more space for the translation. Additionally, I've marked the primary action button with lightGrey to make it stand out from the secondary action.

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 :

Tested on PC, works well for me and code looks good to me

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) :
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/SetReminderView.qml'
2--- src/app/qml/ui/SetReminderView.qml 2014-09-23 12:39:27 +0000
3+++ src/app/qml/ui/SetReminderView.qml 2014-10-12 07:13:01 +0000
4@@ -29,8 +29,8 @@
5 property var note
6
7 ColumnLayout {
8- anchors { top: parent.top; topMargin: units.gu(2); horizontalCenter: parent.horizontalCenter }
9- spacing: units.gu(2)
10+ anchors { top: parent.top; topMargin: units.gu(1); horizontalCenter: parent.horizontalCenter }
11+ spacing: units.gu(1)
12
13 Label {
14 text: i18n.tr("Select date and time for the reminder:")
15@@ -48,35 +48,31 @@
16 date: note.hasReminderTime ? note.reminderTime : new Date()
17 }
18
19- RowLayout {
20- Layout.fillWidth: true
21-
22- Button {
23- text: i18n.tr("Clear reminder")
24- Layout.fillWidth: true
25- onClicked: {
26- note.reminder = false;
27- NotesStore.saveNote(note.guid);
28- pageStack.pop();
29- }
30- }
31-
32- Button {
33- Layout.fillWidth: true
34- text: i18n.tr("Set reminder")
35- onClicked: {
36- note.reminder = true;
37- var date = datePicker.date
38- var time = timePicker.date
39- date.setHours(time.getHours());
40- date.setMinutes(time.getMinutes());
41- note.reminderTime = date;
42- print("set reminder time to", Qt.formatDate(date))
43- NotesStore.saveNote(note.guid)
44- pageStack.pop();
45- }
46- }
47-
48+ Button {
49+ Layout.fillWidth: true
50+ text: i18n.tr("Set reminder")
51+ color: UbuntuColors.lightGrey
52+ onClicked: {
53+ note.reminder = true;
54+ var date = datePicker.date
55+ var time = timePicker.date
56+ date.setHours(time.getHours());
57+ date.setMinutes(time.getMinutes());
58+ note.reminderTime = date;
59+ print("set reminder time to", Qt.formatDate(date))
60+ NotesStore.saveNote(note.guid)
61+ pageStack.pop();
62+ }
63+ }
64+
65+ Button {
66+ text: i18n.tr("Clear reminder")
67+ Layout.fillWidth: true
68+ onClicked: {
69+ note.reminder = false;
70+ NotesStore.saveNote(note.guid);
71+ pageStack.pop();
72+ }
73 }
74 }
75 }

Subscribers

People subscribed via source and target branches