on xenial help sign in
Two other places where we want to maintin the AR
8e50c6eAlbert Astals Cid
plugins/Dash/CardCreator.js+1
@@ -235,6 +235,7 @@ var kEmblemIconCode = 'Icon { \n\
235 source: cardData && cardData["emblem"] || ""; \n\
235 source: cardData && cardData["emblem"] || ""; \n\
236 color: %2; \n\
236 color: %2; \n\
237 height: source != "" ? titleLabel.font.pixelSize : 0; \n\
237 height: source != "" ? titleLabel.font.pixelSize : 0; \n\
238+ width: implicitWidth / implicitHeight * height; \n\
238 }\n';
239 }\n';
239
240
240// %1 is used as anchors of touchdown effect
241// %1 is used as anchors of touchdown effect
qml/Panel/IndicatorItem.qml+1
@@ -95,6 +95,7 @@ IndicatorDelegate {
95 id: itemImage
95 id: itemImage
96 objectName: "icon"+index
96 objectName: "icon"+index
97 height: iconHeight
97 height: iconHeight
98+ width: implicitWidth / implicitHeight * height
98 source: modelData
99 source: modelData
99 color: root.color
100 color: root.color
100 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }
101 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }