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

Proposed by Florian Boucault
Status: Merged
Merged at revision: 112
Proposed branch: lp:~fboucault/mediaplayer-app/new_theming
Merge into: lp:mediaplayer-app
Diff against target: 63 lines (+1/-29)
3 files modified
src/qml/player/TimeLine.qml (+1/-2)
src/qml/theme/qmldir (+0/-3)
src/qml/theme/theme.qmltheme (+0/-24)
To merge this branch: bzr merge lp:~fboucault/mediaplayer-app/new_theming
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Renato Araujo Oliveira Filho (community) Approve
Review via email: mp+171887@code.launchpad.net

Commit message

Adapted slider to newer and simpler toolkit's theming infrastructure.

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
Renato Araujo Oliveira Filho (renatofilho) wrote :

the code looks good and works as expected.
I will approve but I will leave to top approval to Florian, with that he can sync the merge with the SDK changes.

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)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/player/TimeLine.qml'
2--- src/qml/player/TimeLine.qml 2013-05-22 17:26:17 +0000
3+++ src/qml/player/TimeLine.qml 2013-06-27 19:04:25 +0000
4@@ -20,7 +20,6 @@
5 import QtQuick 2.0
6 import Ubuntu.Components 0.1
7 import "../sdk"
8-import "../theme"
9
10 Item {
11 id: _timeLine
12@@ -45,7 +44,7 @@
13 id: _slider
14
15 objectName: "TimeLine.Slider"
16- ItemStyle.delegate: VideoSlider {property Item item: _slider}
17+ style: VideoSlider {property Item item: _slider}
18 anchors {
19 top: parent.top
20 bottom: parent.bottom
21
22=== renamed file 'src/qml/theme/VideoSlider.qml' => 'src/qml/player/VideoSlider.qml'
23=== renamed file 'src/qml/theme/artwork/slider_bg.png' => 'src/qml/player/artwork/slider_bg.png'
24=== renamed file 'src/qml/theme/artwork/slider_handle.png' => 'src/qml/player/artwork/slider_handle.png'
25=== renamed file 'src/qml/theme/artwork/slider_shape.png' => 'src/qml/player/artwork/slider_shape.png'
26=== removed directory 'src/qml/theme'
27=== removed directory 'src/qml/theme/artwork'
28=== removed file 'src/qml/theme/qmldir'
29--- src/qml/theme/qmldir 2013-01-29 22:36:29 +0000
30+++ src/qml/theme/qmldir 1970-01-01 00:00:00 +0000
31@@ -1,3 +0,0 @@
32-module theme
33-
34-VideoSlider 0.1 VideoSlider.qml
35
36=== removed file 'src/qml/theme/theme.qmltheme'
37--- src/qml/theme/theme.qmltheme 2013-02-01 15:22:26 +0000
38+++ src/qml/theme/theme.qmltheme 1970-01-01 00:00:00 +0000
39@@ -1,24 +0,0 @@
40-/*
41- * Copyright (C) 2013 Canonical, Ltd.
42- *
43- * Authors:
44- * Renato Araujo Oliveira Filho <renato@canonical.com>
45- *
46- * This program is free software; you can redistribute it and/or modify
47- * it under the terms of the GNU General Public License as published by
48- * the Free Software Foundation; version 3.
49- *
50- * This program is distributed in the hope that it will be useful,
51- * but WITHOUT ANY WARRANTY; without even the implied warranty of
52- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53- * GNU General Public License for more details.
54- *
55- * You should have received a copy of the GNU General Public License
56- * along with this program. If not, see <http://www.gnu.org/licenses/>.
57- */
58-
59-@import url("/usr/share/themes/Ambiance/qmltheme/default.qmltheme");
60-@qml-import(theme 0.1, ..);
61-@qml-mapping(.slider, , VideoSlider);
62-.slider{}
63-

Subscribers

People subscribed via source and target branches