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
1=== modified file 'src/imports/Components/1.3/PageStack.qml'
2--- src/imports/Components/1.3/PageStack.qml 2016-05-25 12:48:10 +0000
3+++ src/imports/Components/1.3/PageStack.qml 2017-02-21 00:45:31 +0000
4@@ -219,8 +219,10 @@
5 // used when the Page has a Page.header property set.
6 id: backAction
7 visible: pageStack.depth > 1
8- iconName: "back"
9- text: "Back"
10+ // in RTL mode the arrow should point to the right,
11+ // so we will just use "next" as icon
12+ iconName: Qt.application.layoutDirection == Qt.RightToLeft ? "next": "back"
13+ text: i18n.tr("Back")
14 onTriggered: pageStack.pop()
15 objectName: "pagestack_back_action"
16 }

Subscribers

People subscribed via source and target branches