<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    icon should be installed in themes icon and cached by themedaemon.
    theme imageprovider highlighting/coloring it. when you invoking icon
    as image://theme/icon-name it requesting image from "theme"
    imageprovider and it doing all internal work for you.<br>
    <br>
    <div class="moz-cite-prefix">31.05.2014 23:47, Kimmo Lindholm пишет:<br>
    </div>
    <blockquote
      cite="mid:F90A6B1B16626D4082FE8CBFCE5E4790327A9171@exchange.eke.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from rtf -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <font size="2" face="Calibri"><span style="font-size:11pt;">
          <div>Hi,</div>
          <div> </div>
          <div>I’m using IconButton component as the highlight is just
            what I would like to use to show that corresponding function
            is active.</div>
          <div> </div>
          <div>But I can’t use it with my own icons. They need to me
            from image://theme to work, or am I doing something wrong
            here?</div>
          <div> </div>
          <div>This works nicely with stock-icons, e.g.</div>
          <div><font color="purple">IconButton<font color="silver"> </font><font
                color="black">{</font></font></div>
          <div><font color="maroon">    icon.source<font color="black">:</font><font
                color="silver"> </font><font color="green">"image://theme/icon-m-edit"</font></font></div>
          <div><font color="maroon">    highlighted<font color="black">:
                daa</font></font></div>
          <div> </div>
          <div>but if I use my own icon, or that very same icon copied
            to my app local directory, the highlight does not work
            anymore. e.g. this does not highlight:</div>
          <div><font color="purple">IconButton<font color="silver"> </font><font
                color="black">{</font></font></div>
          <div><font color="maroon">    icon.source<font color="black">:</font><font
                color="silver"> </font><font color="green">“</font><font
                color="green">../icons/icon-m-</font><font color="green">edit</font><font
                color="green">.png"</font></font></div>
          <div><font color="maroon">    highlighted<font color="black">:
                daa</font></font></div>
          <div> </div>
          <div>making this into resource does not work either</div>
          <div> </div>
          <div><font color="purple">IconButton<font color="silver"> </font><font
                color="black">{</font></font></div>
          <div><font color="maroon">    icon.source<font color="black">:</font><font
                color="silver"> </font><font color="green">"qrc:///icons/icon-m-e</font><font
                color="green">dit</font><font color="green">"</font></font></div>
          <div><font color="maroon">    highlighted<font color="black">:
                daa</font></font></div>
          <div> </div>
          <div>-kimmo</div>
          <div> </div>
        </span></font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>