← Back to team overview

ubuntu-phone team mailing list archive

Re: Icon QML Component

 

On 01/08/2014 01:38 AM, Victor Palau wrote:
> Hi Jamie,
> 
> You still need to use Qt.resolveurl with image://theme. Works for me on a
> ToobarButton on the device.
> 

Thanks! However, both of these behave identically here:
  iconSource: "image://theme/add"

  iconSource: Qt.resolvedUrl("image://theme/add")

ie, both work fine on the device, but on the desktop, neither honor:
DESKTOP_SESSION=ubuntu-mobile qmlscene ./*qml

(ie, I always get the Ambient theme icon)

> On 7 Jan 2014 14:19, "Jamie Strandboge" <jamie@xxxxxxxxxxxxx
> <mailto:jamie@xxxxxxxxxxxxx>> wrote:
> 
>     On 01/07/2014 08:09 AM, Michał Sawicz wrote:
>     > On 07.01.2014 14:37, Jamie Strandboge wrote:
>     >> Is there a trick to using this with ToolbarButton?
>     >
>     > The themed icons are always available under:
>     >
>     > image://theme/name
>     >
>     > So this should work:
>     >
>     > iconSource: "image://theme/reload"
>     >
>     Thanks! This technique does seem to work for the ToolbarButton, however
>     DESKTOP_SESSION is not honored. Eg, on desktop I still get the Ambient icon with
>     this:
> 
>     DESKTOP_SESSION=ubuntu-mobile qmlscene ./*qml
> 
>     Perhaps this is a bug?

-- 
Jamie Strandboge                 http://www.ubuntu.com/

Attachment: signature.asc
Description: OpenPGP digital signature


References