~ubuntu-branches/ubuntu/trusty/unity8/trusty

« back to all changes in this revision

Viewing changes to qml/Dash/Video/VideoTileStyle.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Michal Hruby, Gerry Boland, Michał Sawicz, Kevin Gunn, Albert Astals, Daniel d'Andrada, Michał Karnicki
  • Date: 2014-03-24 16:10:24 UTC
  • mfrom: (1.1.77)
  • Revision ID: package-import@ubuntu.com-20140324161024-h72j5vn3njrj6f3l
Tags: 7.84+14.04.20140324.4-0ubuntu1
[ Michal Hruby ]
* Change and extend the way non-installed scopes are started with the
  scope-tool.
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Gerry Boland ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Michał Sawicz ]
* Fix rating input action to always be "rated", not dynamic. Based on
  http://developer.ubuntu.com/api/devel/ubuntu-14.04/cplusplus/unity-
  scopes/previewwidgets.html#rating-input
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Kevin Gunn ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Albert Astals ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)
* LVWPH: cull lost items lost items will be released on the next
  updatePolish cycle but meanwhile don't let them be visible

[ Daniel d'Andrada ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

[ Michał Karnicki ]
* Switch to new scope backend and apply required visual adaptations.
  (LP: #1294294)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 */
16
 
 
17
 
import QtQuick 2.0
18
 
import Ubuntu.Components 0.1
19
 
 
20
 
Item {
21
 
    id: tile
22
 
 
23
 
    anchors.fill: parent
24
 
 
25
 
    Image {
26
 
        id: icon
27
 
        anchors {
28
 
            top: parent.top
29
 
            horizontalCenter: parent.horizontalCenter
30
 
        }
31
 
        width: styledItem.imageWidth
32
 
        height: styledItem.imageHeight
33
 
        source: "graphics/movie_icon_holder.png"
34
 
 
35
 
        Image {
36
 
            id: image
37
 
            objectName: "image"
38
 
            anchors {
39
 
                fill: parent;
40
 
                topMargin: units.gu(2);
41
 
                bottomMargin: units.gu(2)
42
 
            }
43
 
            sourceSize { width: icon.width; height: icon.height }
44
 
            asynchronous: true
45
 
            cache: false
46
 
            source: styledItem.source
47
 
            fillMode: styledItem.fillMode
48
 
            horizontalAlignment: Image.AlignHCenter
49
 
            verticalAlignment: Image.AlignVCenter
50
 
        }
51
 
    }
52
 
 
53
 
    UbuntuShape {
54
 
        id: borderPressed
55
 
        objectName: "borderPressed"
56
 
 
57
 
        anchors.fill: icon
58
 
        radius: "medium"
59
 
        borderSource: "radius_pressed.sci"
60
 
        opacity: styledItem.pressed ? 1.0 : 0.0
61
 
        Behavior on opacity { NumberAnimation { duration: 200; easing.type: Easing.OutQuint } }
62
 
    }
63
 
 
64
 
    Label {
65
 
        id: label
66
 
        objectName: "label"
67
 
        anchors {
68
 
            baseline: icon.bottom
69
 
            baselineOffset: units.gu(2)
70
 
            left: icon.left
71
 
            right: parent.right
72
 
            rightMargin: units.gu(1)
73
 
            leftMargin: units.dp(2)
74
 
        }
75
 
 
76
 
        color: Theme.palette.selected.backgroundText
77
 
        opacity: 0.9
78
 
        style: Text.Raised
79
 
        styleColor: "black"
80
 
        fontSize: "small"
81
 
        elide: Text.ElideRight
82
 
        horizontalAlignment: styledItem.horizontalAlignment
83
 
        text: styledItem.text
84
 
        wrapMode: Text.Wrap
85
 
        maximumLineCount: styledItem.maximumLineCount
86
 
    }
87
 
}