on xenial help sign in
Added asset for Video renderer
commit27acd97c05500acf63c0a7bd78b039467449544c authorAndrea Cimitan <andrea.cimitan@canonical.com> dateWed 9 Oct 2013, 18:06 (13 years ago) parent015f5f0
3 files changed+16−21
Dash/Video/VideoFilterGrid.qml+7−1 Dash/Video/VideoTileStyle.qml+9−20 Dash/Video/graphics/movie_icon_holder@27.png
Dash/Video/VideoFilterGrid.qml+7−1
@@ -21,6 +21,12 @@ import "../Generic"
2121GenericFilterGrid {
2222 id: filtergrid
2323
24+ delegateWidth: units.gu(11)
25+ delegateHeight: units.gu(14)
26+
27+ iconWidth: units.gu(11)
28+ iconHeight: units.gu(11)
29+
2430 delegate: Tile {
2531 id: tile
2632 objectName: "delegate" + index
@@ -30,7 +36,7 @@ GenericFilterGrid {
3036 imageWidth: filtergrid.iconWidth
3137 imageHeight: filtergrid.iconHeight
3238 source: model.icon
33− fillMode: Image.PreserveAspectFit
39+ maximumLineCount: 2
3440
3541 style: VideoTileStyle {}
3642
Dash/Video/VideoTileStyle.qml+9−20
@@ -22,18 +22,24 @@ Item {
2222
2323 anchors.fill: parent
2424
25− UbuntuShape {
25+ Image {
2626 id: icon
2727 anchors {
2828 top: parent.top
2929 horizontalCenter: parent.horizontalCenter
3030 }
31− radius: "medium"
3231 width: styledItem.imageWidth
3332 height: styledItem.imageHeight
34− image: Image {
33+ source: "graphics/movie_icon_holder.png"
34+
35+ Image {
3536 id: image
3637 objectName: "image"
38+ anchors {
39+ fill: parent;
40+ topMargin: units.gu(2);
41+ bottomMargin: units.gu(2)
42+ }
3743 sourceSize { width: icon.width; height: icon.height }
3844 asynchronous: true
3945 cache: false
@@ -42,23 +48,6 @@ Item {
4248 horizontalAlignment: Image.AlignHCenter
4349 verticalAlignment: Image.AlignVCenter
4450 }
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− }*/
6251 }
6352
6453 UbuntuShape {
Dash/Video/graphics/movie_icon_holder@27.pngnew file

Binary file not shown.