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

Proposed by Cris Dywan
Status: Merged
Approved by: Tim Peeters
Approved revision: 1091
Merged at revision: 1114
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/galleryTweaksPage
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 68 lines (+53/-0)
2 files modified
examples/ubuntu-ui-toolkit-gallery/Styles.qml (+48/-0)
examples/ubuntu-ui-toolkit-gallery/WidgetsModel.qml (+5/-0)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/galleryTweaksPage
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Review via email: mp+221517@code.launchpad.net

This proposal supersedes a proposal from 2014-05-29.

Commit message

Add a page Tweaks to change theme and header style in the gallery

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

This should be proposed for merging into staging, not trunk.

Also I see changes here that make the header private (from another MR, that is being reverted in landing). Before we accept this we need to make sure that the revert of that is not being reverted again.

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

FAILED: Continuous integration, rev:1088
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/312/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/590/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/538/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/144
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/144
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/144/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/144
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1033/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/1132
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/1132/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/7940
    FAILURE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/478/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/677
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/677/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/312/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1089
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/390/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/928
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/844
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/222
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/222
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/222/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/222
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1328
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/1679
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/1679/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/8511
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/738
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/984
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/984/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/390/rebuild

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

I don't like the name "Tweaks" in the title. Perhaps "Style" is better?

The header with toolbar / new style header options don't make a lot of sense, because the gallery-app doesn't really use those.

Finally, I get a lot of binding loops when switching the style, for example:

file:///home/tim/dev/ubuntu-ui-toolkit/r/galleryTweaksPage/modules/Ubuntu/Components/MainView.qml:202:5: QML StyledItem: Binding loop detected for property "style"
file:///home/tim/dev/ubuntu-ui-toolkit/r/galleryTweaksPage/modules/Ubuntu/Components/MainView.qml:202:5: QML StyledItem: Binding loop detected for property "backgroundColor"
file:///home/tim/dev/ubuntu-ui-toolkit/r/galleryTweaksPage/modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml:68:5: QML Binding: Binding loop detected for property "target"

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

37 + onSelectedIndexChanged: gallery.useDeprecatedToolbar = selectedIndex == 0

I'd prefer some ( ) around the selectedIndex == 0 here

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

PASSED: Continuous integration, rev:1091
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/420/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1038
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/935
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-amd64-ci/252
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/252
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-armhf-ci/252/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-utopic-i386-ci/252
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1416
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/1822
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/1822/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/8633
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/808
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1078
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1078/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/420/rebuild

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

thanks

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'examples/ubuntu-ui-toolkit-gallery/Styles.qml'
2--- examples/ubuntu-ui-toolkit-gallery/Styles.qml 1970-01-01 00:00:00 +0000
3+++ examples/ubuntu-ui-toolkit-gallery/Styles.qml 2014-06-19 13:11:43 +0000
4@@ -0,0 +1,48 @@
5+/*
6+ * Copyright 2014 Canonical Ltd.
7+ *
8+ * This program is free software; you can redistribute it and/or modify
9+ * it under the terms of the GNU Lesser General Public License as published by
10+ * the Free Software Foundation; version 3.
11+ *
12+ * This program is distributed in the hope that it will be useful,
13+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+ * GNU Lesser General Public License for more details.
16+ *
17+ * You should have received a copy of the GNU Lesser General Public License
18+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19+ */
20+
21+import QtQuick 2.0
22+import Ubuntu.Components 1.1
23+
24+Template {
25+ objectName: "stylesTemplate"
26+
27+ Label {
28+ anchors.left: parent.left
29+ anchors.right: parent.right
30+
31+ text: i18n.tr("Switch between old and new style header")
32+ }
33+
34+ OptionSelector {
35+ model: [ i18n.tr('Header with Toolbar'), i18n.tr('New Style Header') ]
36+ expanded: true
37+ onSelectedIndexChanged: gallery.useDeprecatedToolbar = (selectedIndex == 0)
38+ }
39+
40+ Label {
41+ anchors.left: parent.left
42+ anchors.right: parent.right
43+
44+ text: i18n.tr("Switch between themes")
45+ }
46+
47+ OptionSelector {
48+ model: [ 'Ambiance', 'SuruDark' ]
49+ expanded: true
50+ onSelectedIndexChanged: Theme.name = 'Ubuntu.Components.Themes.%1'.arg(model[selectedIndex])
51+ }
52+}
53
54=== modified file 'examples/ubuntu-ui-toolkit-gallery/WidgetsModel.qml'
55--- examples/ubuntu-ui-toolkit-gallery/WidgetsModel.qml 2014-04-30 10:26:35 +0000
56+++ examples/ubuntu-ui-toolkit-gallery/WidgetsModel.qml 2014-06-19 13:11:43 +0000
57@@ -23,6 +23,11 @@
58 label: "Navigation"
59 source: "Navigation.qml"
60 }
61+ ListElement {
62+ objectName: "stylesElement"
63+ label: "Styles"
64+ source: "Styles.qml"
65+ }
66
67 ListElement {
68 objectName: "togglesElement"

Subscribers

People subscribed via source and target branches