Merge lp:~libqtelegram-team/telegram-app/app-dev-fix-profilepage-buttons into lp:telegram-app/app-dev

Proposed by Giulio Collura
Status: Merged
Approved by: Michał Karnicki
Approved revision: 262
Merged at revision: 263
Proposed branch: lp:~libqtelegram-team/telegram-app/app-dev-fix-profilepage-buttons
Merge into: lp:telegram-app/app-dev
Diff against target: 103 lines (+23/-20)
2 files modified
components/listitems/ListItemWithActions.qml (+8/-6)
ui/ProfilePage.qml (+15/-14)
To merge this branch: bzr merge lp:~libqtelegram-team/telegram-app/app-dev-fix-profilepage-buttons
Reviewer Review Type Date Requested Status
Michał Karnicki (community) Approve
Review via email: mp+250446@code.launchpad.net

Description of the change

I moved the small button near the user telephone number, down above the secret chat button.
I also improved a bit the listitemwithactions.

To post a comment you must log in.
Revision history for this message
Michał Karnicki (karni) wrote :

All good! When you merge, please remove line 35 (the commented one). Thanks :)

review: Approve
263. By Giulio Collura

remove commented line

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'components/listitems/ListItemWithActions.qml'
2--- components/listitems/ListItemWithActions.qml 2015-01-26 17:41:54 +0000
3+++ components/listitems/ListItemWithActions.qml 2015-02-20 15:14:29 +0000
4@@ -61,7 +61,7 @@
5 updatePosition(0)
6 return
7 } else if (!triggerActionOnMouseRelease) {
8- updatePosition(-rightActionsView.width)
9+ updatePosition(-rightActionsView.width + units.gu(2))
10 return
11 }
12
13@@ -84,7 +84,7 @@
14 updatePosition(0)
15 return
16 } else if (!triggerActionOnMouseRelease) {
17- updatePosition(leftActionView.width)
18+ updatePosition(leftActionView.width - units.gu(2))
19 return
20 }
21
22@@ -219,14 +219,15 @@
23 right: main.left
24 }
25 visible: _visibleLeftSideActions.length > 0
26- width: leftActionsRepeater.count > 0 ? leftActionsRepeater.count * (root.actionWidth + units.gu(2)) + root.actionThreshold + units.gu(1) : 0
27+ width: leftActionsRepeater.count > 0 ? leftActionsRepeater.count * (root.actionWidth + units.gu(2)) + root.actionThreshold + units.gu(3) : 0
28 color: "#eef32c36" // UbuntuColors.red with alpha
29
30 Row {
31 anchors{
32 top: parent.top
33 bottom: parent.bottom
34- horizontalCenter: parent.horizontalCenter
35+ right: parent.right
36+ rightMargin: units.gu(2)
37 }
38 spacing: units.gu(2)
39 Repeater {
40@@ -262,13 +263,14 @@
41 bottom: main.bottom
42 }
43 visible: _visibleRightSideActions.length > 0
44- width: rightActionsRepeater.count > 0 ? rightActionsRepeater.count * (root.actionWidth + units.gu(2)) + root.actionThreshold + units.gu(1) : 0
45+ width: rightActionsRepeater.count > 0 ? rightActionsRepeater.count * (root.actionWidth + units.gu(2)) + root.actionThreshold + units.gu(3) : 0
46 color: "white"
47 Row {
48 anchors{
49 top: parent.top
50 bottom: parent.bottom
51- horizontalCenter: parent.horizontalCenter
52+ left: parent.left
53+ leftMargin: units.gu(2)
54 }
55 spacing: units.gu(2)
56 Repeater {
57
58=== modified file 'ui/ProfilePage.qml'
59--- ui/ProfilePage.qml 2015-02-17 13:04:24 +0000
60+++ ui/ProfilePage.qml 2015-02-20 15:14:29 +0000
61@@ -170,6 +170,7 @@
62 rightMargin: units.gu(2)
63 top: phoneHeader.bottom
64 }
65+ height: units.gu(5)
66
67 Label {
68 id: phone
69@@ -192,21 +193,21 @@
70 Qt.openUrlExternally("tel:///" + phone.text)
71 }
72 }
73+ }
74
75- AbstractButton {
76- id: msgAction
77- width: units.gu(5)
78- height: width
79- visible: userExists
80- Icon {
81- width: units.gu(4)
82- height: width
83- anchors.centerIn: parent
84- source: Qt.resolvedUrl("../images/ic_profile_send_message.png")
85- }
86- onClicked: {
87- openChatById(userId);
88- }
89+ TelegramButton {
90+ id: msgAction
91+ anchors {
92+ left: parent.left
93+ right: parent.right
94+ bottom: startSecretChat.top
95+ margins: units.gu(2)
96+ }
97+ visible: userExists
98+ text: i18n.tr("Start chat")
99+ color: TelegramColors.grey
100+ onClicked: {
101+ openChatById(userId);
102 }
103 }
104

Subscribers

People subscribed via source and target branches

to all changes: