Merge lp:~fboucault/notes-app/new_theming into lp:notes-app

Proposed by Florian Boucault
Status: Rejected
Rejected by: Olivier Tilloy
Proposed branch: lp:~fboucault/notes-app/new_theming
Merge into: lp:notes-app
Diff against target: 91 lines (+8/-26)
5 files modified
CMakeLists.txt (+1/-1)
Components/CollapsedNoteDecorations.qml (+2/-1)
Components/TextDelegate.qml (+5/-5)
NotesApp.qml (+0/-2)
notes-app.qmltheme (+0/-17)
To merge this branch: bzr merge lp:~fboucault/notes-app/new_theming
Reviewer Review Type Date Requested Status
Olivier Tilloy Disapprove
PS Jenkins bot continuous-integration Needs Fixing
Ugo Riboni (community) Approve
Review via email: mp+171885@code.launchpad.net

Commit message

Adapted to newer and simpler toolkit's theming infrastructure. The header is no longer yellow which is fine since a revamped visual design for that is underway.

The ItemStyle attached property has been removed and widgets now have a 'style' property equivalent to what ItemStyle.delegate was providing.
The Ubuntu UI Toolkit merge request containing that change is: https://code.launchpad.net/~fboucault/ubuntu-ui-toolkit/simple_theming/+merge/171645
It will be merged in the morning so that the fixes for this app can be merged in the same day.

For testing, armhf packages of the toolkit are available at: http://people.canonical.com/~kaleo/sdk_simple_theming/

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ugo Riboni (uriboni) wrote :

All works as advertised. Comment approving until the SDK is ready.

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) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

It appears autopilot tests are failing because of focus issues, similar to those that Ugo spent quite some time fighting in the past. From a quick scan at the code, I have no idea what’s going on, need input from someone on the SDK team.

Revision history for this message
Florian Boucault (fboucault) wrote :

I don't think the issue is related to the toolkit really.

Revision history for this message
Olivier Tilloy (osomon) wrote :
review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-06-17 15:04:55 +0000
3+++ CMakeLists.txt 2013-06-27 18:58:28 +0000
4@@ -21,7 +21,7 @@
5 DESTINATION ${CMAKE_INSTALL_BINDIR}
6 )
7
8-file(GLOB QML_JS_FILES *.qml *.qmltheme)
9+file(GLOB QML_JS_FILES *.qml)
10
11 install(FILES ${QML_JS_FILES}
12 DESTINATION ${NOTES_APP_DIR}
13
14=== modified file 'Components/CollapsedNoteDecorations.qml'
15--- Components/CollapsedNoteDecorations.qml 2013-06-10 11:48:01 +0000
16+++ Components/CollapsedNoteDecorations.qml 2013-06-27 18:58:28 +0000
17@@ -34,12 +34,13 @@
18
19 Label {
20 id: noteDate
21- ItemStyle.class: "note-date"
22 anchors {
23 bottom: parent.bottom
24 right: parent.right
25 margins: units.gu(1)
26 }
27+ fontSize: "x-small"
28+ color: "#c7af87"
29 }
30
31 Behavior on opacity {
32
33=== modified file 'Components/TextDelegate.qml'
34--- Components/TextDelegate.qml 2013-05-31 16:34:00 +0000
35+++ Components/TextDelegate.qml 2013-06-27 18:58:28 +0000
36@@ -16,15 +16,15 @@
37
38 import QtQuick 2.0
39 import Ubuntu.Components 0.1
40+import Ubuntu.Components.Themes.Ambiance 0.1
41
42 TextArea {
43 id: textArea
44
45- /* WORKAROUND for but in the SDK:
46- https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1168006
47- which makes the app crash when loading the theme */
48- ItemStyle.delegate: Item {}
49-
50+ style: TextAreaStyle {
51+ frameSpacing: 0
52+ background: Item {}
53+ }
54 signal deletePrevious()
55
56 autoSize: true
57
58=== modified file 'NotesApp.qml'
59--- NotesApp.qml 2013-05-31 16:34:00 +0000
60+++ NotesApp.qml 2013-06-27 18:58:28 +0000
61@@ -63,8 +63,6 @@
62 }
63 }
64
65- Component.onCompleted: Theme.loadTheme(Qt.resolvedUrl("notes-app.qmltheme"))
66-
67 Page {
68 anchors.fill: parent
69 title: i18n.tr("Notes")
70
71=== removed file 'notes-app.qmltheme'
72--- notes-app.qmltheme 2013-03-25 11:12:44 +0000
73+++ notes-app.qmltheme 1970-01-01 00:00:00 +0000
74@@ -1,17 +0,0 @@
75-@import url(system:/Ambiance/qmltheme/default.qmltheme);
76-
77-@qml-mapping(.textarea, TextAreaStyle, );
78-
79-.textarea {
80- frameSpacing: 8
81-}
82-
83-.note-date {
84- fontSize: "x-small";
85- color: "#c7af87";
86-}
87-
88-.header {
89- backgroundColor: "#f9edc1";
90- backgroundSource: "";
91-}

Subscribers

People subscribed via source and target branches