on xenial help sign in
Simplify FlatTileStyle.qml.
1c8293cMichał Sawicz
Dash/Generic/FlatTileStyle.qml+12−17
@@ -24,27 +24,22 @@ Item {
24
24
25 anchors.fill: parent
25 anchors.fill: parent
26
26
27− Item {
27+ Image {
28 id: icon
28 id: icon
29− anchors {
29+ objectName: "image"
30− top: parent.top
31− horizontalCenter: parent.horizontalCenter
32− }
33 width: styledItem.imageWidth
30 width: styledItem.imageWidth
34 height: styledItem.imageHeight
31 height: styledItem.imageHeight
35
32
36− Image {
33+ anchors.horizontalCenter: parent.horizontalCenter
37− id: image
34+
38− objectName: "image"
39− sourceSize { width: icon.width; height: icon.height }
35+ sourceSize { width: width; height: height }
40− asynchronous: true
36+ asynchronous: true
41− cache: false
37+ cache: false
42− source: styledItem.source
38+ source: styledItem.source
43− fillMode: styledItem.fillMode
39+ fillMode: styledItem.fillMode
44− opacity: tile.disabled ? 0.3 : 1.0
40+ opacity: tile.disabled ? 0.3 : 1.0
45− horizontalAlignment: styledItem.horizontalAlignment
41+ horizontalAlignment: styledItem.horizontalAlignment
46− verticalAlignment: styledItem.verticalAlignment
42+ verticalAlignment: styledItem.verticalAlignment
47− }
48 }
43 }
49
44
50 UbuntuShape {
45 UbuntuShape {