Merge lp:~daker/ubuntu-ui-toolkit/fix.1665938 into lp:ubuntu-ui-toolkit/staging

Proposed by Adnane Belmadiaf
Status: Rejected
Rejected by: Cris Dywan
Proposed branch: lp:~daker/ubuntu-ui-toolkit/fix.1665938
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 16 lines (+4/-2)
1 file modified
src/imports/Components/1.3/PageStack.qml (+4/-2)
To merge this branch: bzr merge lp:~daker/ubuntu-ui-toolkit/fix.1665938
Reviewer Review Type Date Requested Status
Cris Dywan Needs Fixing
Review via email: mp+317804@code.launchpad.net

Commit message

Fix Pagestack backAction icon in RTL mode

Description of the change

I used the "next" icon in RTL mode since the arrow needs to point to the right instead of the left

To post a comment you must log in.
2175. By Adnane Belmadiaf

Fix comment

Revision history for this message
Cris Dywan (kalikiana) wrote :

I'm afraid this is wrong. We have two options, one of which is practicable here:

1) Use Image.mirror: in the implementation of the Back button. Not feasible here because Action is used to define the button.
2) Add back-rtl.svg to the theme (Suru). This may also require a patch to src/UbuntuToolkit/ucscalingimageprovider.cpp to recognize -rtl as per the xdg icon spec to use alternative icon, in which case I'd recommend a second bug report. I can help out with the implementation as needed.

review: Needs Fixing

Unmerged revisions

2175. By Adnane Belmadiaf

Fix comment

2174. By Adnane Belmadiaf

Fix Pagestack backAction in RTL mode

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/imports/Components/1.3/PageStack.qml'
--- src/imports/Components/1.3/PageStack.qml 2016-05-25 12:48:10 +0000
+++ src/imports/Components/1.3/PageStack.qml 2017-02-21 00:45:31 +0000
@@ -219,8 +219,10 @@
219 // used when the Page has a Page.header property set.219 // used when the Page has a Page.header property set.
220 id: backAction220 id: backAction
221 visible: pageStack.depth > 1221 visible: pageStack.depth > 1
222 iconName: "back"222 // in RTL mode the arrow should point to the right,
223 text: "Back"223 // so we will just use "next" as icon
224 iconName: Qt.application.layoutDirection == Qt.RightToLeft ? "next": "back"
225 text: i18n.tr("Back")
224 onTriggered: pageStack.pop()226 onTriggered: pageStack.pop()
225 objectName: "pagestack_back_action"227 objectName: "pagestack_back_action"
226 }228 }

Subscribers

People subscribed via source and target branches