Adding icons to your widget

Forums » General Opera topics » Opera Widgets

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

2. June 2010, 15:52:50

Ecaille

Posts: 63

Adding icons to your widget

Hello,

I have the application and did create the icon.

Now I want to relate the Icon and the widget. So that if I press the Icon the widget opens.

How do I dot that ?

I did not understand how to open the file and do it :

---

Adding icons to your widget

In order for your widget to use the icons you've made, you need to put them in your widget package and add their paths to the <widget> element in your config.xml file:
<widget>
...
<icon>icons/128_widget_icon_mywidget.png</icon>
<icon>icons/64_widget_icon_mywidget.png</icon>
<icon>icons/32_widget_icon_mywidget.png</icon>
<icon>icons/16_widget_icon_mywidget.png</icon>
...
</widget>

---

How do you do that ?

Tanks for you help,
Ecaille.

P.S. See : http://dev.opera.com/articles/view/icon-creator-tutorial/

2. June 2010, 16:06:40

Ecaille

Posts: 63

Hi,

I just find a more easy way to do it.

Under windows 7 press start and type in the search space the name of your widget.

It will appear, click right and press "open the location" (I have it in French but you do understand).

Make a "shortcut", and place it wherever you like.

I hope this is useful to some of you.

Have fun with the applications,
Ecaille.

P.S. So no need to use the "Icon creator" if you don't want to make a special looking icon.

Forums » General Opera topics » Opera Widgets