Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/readableDocLinks into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Tim Peeters
Approved revision: 1132
Merged at revision: 1133
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/readableDocLinks
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 45 lines (+2/-4)
3 files modified
examples/ubuntu-ui-toolkit-gallery/TemplateSection.qml (+0/-1)
examples/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml (+0/-2)
examples/ubuntu-ui-toolkit-gallery/WebLink.qml (+2/-1)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/readableDocLinks
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Review via email: mp+225315@code.launchpad.net

Commit message

Use orange and no translucency for links in the gallery

To post a comment you must log in.
Revision history for this message
Tim Peeters (tpeeters) wrote :

I propose using styledText instead of richText and setting the linkColor property instead of using html.

http://qt-project.org/doc/qt-5/qml-qtquick-text.html#linkColor-prop

Revision history for this message
Tim Peeters (tpeeters) :
review: Needs Fixing
Revision history for this message
Tim Peeters (tpeeters) wrote :

I'd prefer
text: "<a href=" + url + ">" + label + "</a>"
over a string with args, but that's probably personal.

1132. By Cris Dywan

Use styledText and linkColor for WebLink

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

linkColor works well, good idea! Somehow I didn't see it before in the docs, must've been an outdated copy.

I'd keep the arg() style, I don't think we have a specific policy here, and it was like that before I touched it.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1131
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/538/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1469
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1265
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/370
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/370
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/370/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/370
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1756
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2436
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2436/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/9162
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1042
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1413
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1413/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/538/rebuild

review: Approve (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

looks much better now, thanks.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1132
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/540/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1479
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1272
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/372
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/372
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/372/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/372
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1762
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2448
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2448/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/9172
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1048
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1420
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1420/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/540/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'examples/ubuntu-ui-toolkit-gallery/TemplateSection.qml'
2--- examples/ubuntu-ui-toolkit-gallery/TemplateSection.qml 2014-04-23 09:39:11 +0000
3+++ examples/ubuntu-ui-toolkit-gallery/TemplateSection.qml 2014-07-02 14:17:24 +0000
4@@ -46,7 +46,6 @@
5 url: prefix + documentation
6 visible: documentation != ""
7 fontSize: "small"
8- opacity: 0.3
9 }
10 }
11 }
12
13=== modified file 'examples/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml'
14--- examples/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml 2014-04-23 09:39:11 +0000
15+++ examples/ubuntu-ui-toolkit-gallery/TemplateSectionNavigation.qml 2014-07-02 14:17:24 +0000
16@@ -43,7 +43,6 @@
17 url: prefix + documentation
18 visible: documentation != ""
19 fontSize: "small"
20- opacity: 0.3
21 anchors.left: parent.left
22 }
23
24@@ -51,7 +50,6 @@
25 label: "Design guidelines"
26 url: templateSection.designUrl
27 fontSize: "small"
28- opacity: 0.3
29 anchors.left: parent.left
30 }
31
32
33=== modified file 'examples/ubuntu-ui-toolkit-gallery/WebLink.qml'
34--- examples/ubuntu-ui-toolkit-gallery/WebLink.qml 2014-04-23 09:39:11 +0000
35+++ examples/ubuntu-ui-toolkit-gallery/WebLink.qml 2014-07-02 14:17:24 +0000
36@@ -23,7 +23,8 @@
37 property string label: url
38 property url url
39
40- textFormat: Text.RichText
41+ textFormat: Text.StyledText
42 text: "<a href=\"%1\">%2</a>".arg(webLink.url).arg(webLink.label)
43+ linkColor: UbuntuColors.orange
44 onLinkActivated: Qt.openUrlExternally(link)
45 }

Subscribers

People subscribed via source and target branches