<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I don't think there's an "official" way of maintaining backward
compatibility but I'd humbly suggest something like if ("color" in
icon) ...<br>
</p>
<p>e.g. I do this kind of thing to notifications:<br>
</p>
<p> Notification {<br>
id: clipboardNotification<br>
previewBody: "Copied to clipboard"<br>
Component.onCompleted: {<br>
if ("icon" in clipboardNotification) {<br>
clipboardNotification.icon = "icon-s-clipboard"<br>
}<br>
}<br>
}<br>
</p>
<p>Cheers,</p>
<p>-Slava<br>
</p>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:CA+4hNMFUcriFkGD0kd-+O+nDj8rN688uimdP=WCa5q-W+SZbfg@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Hi,<br>
</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">due to the
changes in handling of icon coloring of IconButton in SFOS
3.1, I am getting a steady stream of EA users complaining
about the absence of icons in Pure Maps - as in <a
href="http://talk.maemo.org/showpost.php?p=1558483&postcount=773"
moz-do-not-send="true">http://talk.maemo.org/showpost.php?p=1558483&postcount=773</a>
. The issue has been described well in <a
href="https://together.jolla.com/question/209315/bug-31011-qml-iconbutton-problems/"
moz-do-not-send="true">https://together.jolla.com/question/209315/bug-31011-qml-iconbutton-problems/</a>
without any response from Jolla devs. Let's see if we can get
this response over here.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">In Pure Maps,
icons are expected to be drawn according to the styling given
by map, not by ambience. I was told that I can set icon.color:
undefined as a property. However, when doing it for SFOS
versions <3.1, this leads to lots of warning messages on
stdout. What's an official way that I am expected to use when
I want to support earlier SFOS versions as well?</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Cheers,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Rinigus</div>
</div>
<br>
</blockquote>
</body>
</html>