on xenial help sign in
Added asset for Video renderer
27acd97Andrea Cimitan
Dash/Video/VideoFilterGrid.qml+7−1
@@ -21,6 +21,12 @@ import "../Generic"
21GenericFilterGrid {
21GenericFilterGrid {
22 id: filtergrid
22 id: filtergrid
23
23
24+ delegateWidth: units.gu(11)
25+ delegateHeight: units.gu(14)
26+
27+ iconWidth: units.gu(11)
28+ iconHeight: units.gu(11)
29+
24 delegate: Tile {
30 delegate: Tile {
25 id: tile
31 id: tile
26 objectName: "delegate" + index
32 objectName: "delegate" + index
@@ -30,7 +36,7 @@ GenericFilterGrid {
30 imageWidth: filtergrid.iconWidth
36 imageWidth: filtergrid.iconWidth
31 imageHeight: filtergrid.iconHeight
37 imageHeight: filtergrid.iconHeight
32 source: model.icon
38 source: model.icon
33− fillMode: Image.PreserveAspectFit
39+ maximumLineCount: 2
34
40
35 style: VideoTileStyle {}
41 style: VideoTileStyle {}
36
42
Dash/Video/VideoTileStyle.qml+9−20
@@ -22,18 +22,24 @@ Item {
22
22
23 anchors.fill: parent
23 anchors.fill: parent
24
24
25− UbuntuShape {
25+ Image {
26 id: icon
26 id: icon
27 anchors {
27 anchors {
28 top: parent.top
28 top: parent.top
29 horizontalCenter: parent.horizontalCenter
29 horizontalCenter: parent.horizontalCenter
30 }
30 }
31− radius: "medium"
32 width: styledItem.imageWidth
31 width: styledItem.imageWidth
33 height: styledItem.imageHeight
32 height: styledItem.imageHeight
33+ source: "graphics/movie_icon_holder.png"
34+
34− image: Image {
35+ Image {
35 id: image
36 id: image
36 objectName: "image"
37 objectName: "image"
38+ anchors {
39+ fill: parent;
40+ topMargin: units.gu(2);
41+ bottomMargin: units.gu(2)
42+ }
37 sourceSize { width: icon.width; height: icon.height }
43 sourceSize { width: icon.width; height: icon.height }
38 asynchronous: true
44 asynchronous: true
39 cache: false
45 cache: false
@@ -42,23 +48,6 @@ Item {
42 horizontalAlignment: Image.AlignHCenter
48 horizontalAlignment: Image.AlignHCenter
43 verticalAlignment: Image.AlignVCenter
49 verticalAlignment: Image.AlignVCenter
44 }
50 }
45−
46− /*Image {
47− source: "background.png";
48− width: foo
49− height: bar
50−
51− Image {
52− source: the_source
53− anchors {
54− fill: parent;
55− topMargin: units.gu(5);
56− bottomMargin: units.gu(5)
57− }
58− fillMode: Image.PreserveAspectCrop
59− sourceSize.height: height
60− }
61− }*/
62 }
51 }
63
52
64 UbuntuShape {
53 UbuntuShape {
Dash/Video/graphics/movie_icon_holder@27.pngnew file

Binary file not shown.