on xenial help sign in
Two other places where we want to maintin the AR
commit8e50c6e396ca5695b4066f7db00b57242a68e548 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 12 Feb 2015, 12:52 (12 years ago) parent6817a0e
2 files changed+2
plugins/Dash/CardCreator.js+1 qml/Panel/IndicatorItem.qml+1
plugins/Dash/CardCreator.js+1
@@ -235,6 +235,7 @@ var kEmblemIconCode = 'Icon { \n\
235235 source: cardData && cardData["emblem"] || ""; \n\
236236 color: %2; \n\
237237 height: source != "" ? titleLabel.font.pixelSize : 0; \n\
238+ width: implicitWidth / implicitHeight * height; \n\
238239 }\n';
239240
240241// %1 is used as anchors of touchdown effect
qml/Panel/IndicatorItem.qml+1
@@ -95,6 +95,7 @@ IndicatorDelegate {
9595 id: itemImage
9696 objectName: "icon"+index
9797 height: iconHeight
98+ width: implicitWidth / implicitHeight * height
9899 source: modelData
99100 color: root.color
100101 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }