You Are Here:

Community: Developer Discussion Boards

#1 Old Is there any icon library ? - 2008-12-09, 13:53

Join Date: Nov 2007
Posts: 317
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Online
Forum Nokia Champion
Hello

Is there any icon library available for pys60 ? I simple do not have any artistic capability, so...

Searching, I can see several examples using z:\\system\\data\\avkon.mbm. I couldn't find this file in my phone but some sites show its contents:

http://alindh.iki.fi/symbian/avkon.mbm/

Is there any other set of icons ready to use ?

thanks a lot
Reply With Quote

#2 Old Re: Is there any icon library ? - 2008-12-09, 14:44

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
You can download SVG clipart from http://openclipart.org. Some of the files need a little modification to display correctly on a phone (add a valid viewBox attribute to the outermost svg element). Many of the SVG files are too large for an S60 application icon. Nokia suggested max. 10 kB icon file size at some point.

Note: When trying out different icons, the phone caches the first icon. If you update your SIS file, any new icon is not displayed until you turn the phone off and on again (removing a SIS package and reinstalling it is not enough). This behaviour may have been corrected on newer S60 3rd Edition phones.
Reply With Quote

#3 Old Re: Is there any icon library ? - 2008-12-09, 14:53

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by jethro.fn View Post
You can download SVG clipart from http://openclipart.org. Some of the files need a little modification to display correctly on a phone (add a valid viewBox attribute to the outermost svg element). Many of the SVG files are too large for an S60 application icon. Nokia suggested max. 10 kB icon file size at some point.

Note: When trying out different icons, the phone caches the first icon. If you update your SIS file, any new icon is not displayed until you turn the phone off and on again (removing a SIS package and reinstalling it is not enough). This behaviour may have been corrected on newer S60 3rd Edition phones.
Hi Jussi,

I think he is talking about icons for a listbox

By the way, I have a N95 8gb and sometimes I have to restart the phone to see the new icon, so it is not completely corrected on S60 3rd edition phones, but it may be corrected on the FP2 ones...


BR,

Rafael.
Reply With Quote

#4 Old Re: Is there any icon library ? - 2008-12-09, 14:58

Join Date: Nov 2007
Posts: 317
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Online
Forum Nokia Champion
Quote:
Originally Posted by Rafael T. View Post
Hi Jussi,

I think he is talking about icons for a listbox
Yes, for listbox ! MBM icons, I think.
Reply With Quote

#5 Old Re: Is there any icon library ? - 2008-12-09, 16:37

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by marcelobarrosalmeida View Post
Hello


Searching, I can see several examples using z:\\system\\data\\avkon.mbm. I couldn't find this file in my phone but some sites show its contents:

http://alindh.iki.fi/symbian/avkon.mbm/

Is there any other set of icons ready to use ?

thanks a lot
You can find the avkon2.mbm in z:\\RESOURCE\\APPS (no avkon.mbm in 3rd edition)


Thanks for the avkon link

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#6 Old Re: Is there any icon library ? - 2008-12-10, 09:20

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by marcelobarrosalmeida View Post
Nice discovery, thanx! Did you find avkon2.mbm anywhere? Would be nice, been looking for it myself. At one point I even created an avkon2.mbm viewer application, but couldn't run it since it required too much memory. Had to split in two parts

Anyway, that wasn't too useful. Website would be much better.

Cheers,

--jouni
Reply With Quote

#7 Old Re: Is there any icon library ? - 2008-12-10, 10:03

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by JOM View Post
At one point I even created an avkon2.mbm viewer application, but couldn't run it since it required too much memory. Had to split in two parts

--jouni
Hi Jouni

Haye you tried this library for viewing your mbm file in your device ?

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#8 Old Re: Is there any icon library ? - 2008-12-10, 10:16

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by JOM View Post
Nice discovery, thanx! Did you find avkon2.mbm anywhere?
Here you go: http://symbiantricks.info/tricks/avkon2_mif_icons/ (MIF files link to MBM files for bitmap icons.)
Reply With Quote

#9 Old Re: Is there any icon library ? - 2008-12-10, 11:04

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by cyke64 View Post
Have you tried this library for viewing your mbm file in your device?
I guess I have, since cannot imagine how else would I have been able to write the avkon2.mbm viewer I recall I saw something for avkon.mbm and after some research figured out that that specific file was missing and replaced by avkon2.mbm. Have to check, if I still have sources somewhere...

Quote:
Originally Posted by jethro.fn View Post
Here you go: http://symbiantricks.info/tricks/avkon2_mif_icons/ (MIF files link to MBM files for bitmap icons.)
Nice, but it has applied icon + mask together into single image. I would like to see them separately, because there was some problems. I recall a mask or two were missing, which kind of messed up numbering. Nevertheless, GREAT reference and very useful to see all the images on large page Have to think, if I could reuse default icons in some own sw

Hmph, I do know that avkon.mbm and avkon2.mbm are not "backwards compatible". Wondering, whether avkon2.mbm is same in each release or whether icons are changed? Names are kept same to keep source code compatibility, most likely also generic icon style, but what about size? Most likely not, I would imagine...

Cheers,

--jouni
Reply With Quote

#10 Old Re: Is there any icon library ? - 2008-12-11, 10:57

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by JOM View Post
Nice, but it has applied icon + mask together into single image. I would like to see them separately, because there was some problems.
I don't see any problem with that. For icons marked "svg" you can use the same number for icon and mask. All the bitmap icons I tested have the mask right after the icon itself. To find out the icon and mask numbers for Icon(), check the image URL on the web page, for example by right clicking the image and selecting "Open Image in New Tab" or some such thing.

Code:
import appuifw
import e32

# Phone (svg)
# iconnum = 16930
# masknum = 16930

# Exclamation point (bitmap)
#iconnum = 16772
#masknum = 16773

# Stop (bitmap)
iconnum = 16774
masknum = 16775


lock = e32.Ao_lock()

icon = appuifw.Icon(u"Z:\\RESOURCE\\APPS\\AVKON2.MIF", iconnum, masknum)

lb = appuifw.Listbox([(u"Nice icon", icon)], lambda: lock.signal())

appuifw.app.exit_key_handler = lambda: lock.signal()
appuifw.app.body = lb

lock.wait()
Reply With Quote

#11 Old Re: Is there any icon library ? - 2008-12-11, 13:54

Join Date: Jan 2004
Posts: 368
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
Quote:
Originally Posted by marcelobarrosalmeida View Post
Hello

Is there any icon library available for pys60 ? I simple do not have any artistic capability, so...

Google tango icons. It is generic SVG icon library which can be converted to bitmap icons.


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
在S60 2nd fp2 sdk下编译的软件在N70上正常运行但在联想P930手机上居然启动不了!? goready@163.com Symbian 21 2008-06-20 12:41
GoogleIt deepika.mangla General Symbian C++ 4 2007-01-08 02:07
SyExpat + problem + memmove + Carbide Express pearman General Symbian C++ 2 2006-10-14 23:21
Compilation series 60 3rd edition asmobease Symbian Tools & SDKs 32 2006-09-13 10:46
Can’t launch application on 6630 kaffemannen General Symbian C++ 8 2005-06-29 11:49

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia