← Back to team overview

ubuntu-phone team mailing list archive

Re: Add image for toolbar buttons?

 

Do you have the mobile icons installed? I am quite curious because that method seems much cleaner and less hacky

On 11/03/2013 10:01 AM, Sam Bull wrote:
On Sat, 2013-11-02 at 12:16 -0500, Israel wrote:
Does it work with the icons installed though.  Since these apps are to
be cross platform (cross device?), I think this would be needed, in
order for these apps to be truly device independant
Using Matt's method, the icons show up just fine on my laptop, running
Ubuntu GNOME 13.10. Though the icons appear to be GNOME icons rather
than the mobile icons (which makes sense).

On 11/02/2013 01:41 AM, Matt Austin wrote:
After some experimentation, I got the following to work:

     tools: ToolbarItems {
         ToolbarButton {
             action: Action {
                 text: 'Refresh'
                 iconSource: Qt.resolvedUrl('image://theme/reload')
                 onTriggered: {}
             }
         }
     }


--
Regards



References