This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Icons

Tags: None
(comma "," separated)
User avatar
centuri0
Registered Member
Posts
2
Karma
0

Icons

Mon Jan 18, 2010 2:01 pm
Hello
I'm new here and have a little question to ask, about icons.
I searched, but didn't find...
Hope this is the right place to ask this.

I'm making an icon theme for KDE4, at the moment, and I'm a FrugalWare user, so we use .fpm archives (not .rpm or .deb).
My question is where and/or how can I make my kde use a specific icon for these? Is there a file to edit or something?

I tried to name a mimetype something like application-x-fpm.png, but with no success.

Please lighten me. Thanks

Regards, Centuri0.
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

Re: Icons

Tue Jan 19, 2010 11:30 am
I am no expert on icons, but the approach looks about right.

Where did you install the icon to? default hicolor fallback theme, your own theme?
Did you touch the top level directory after installing?
Did you try xdg-icon-resource for installing?

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
centuri0
Registered Member
Posts
2
Karma
0

Re: Icons

Thu Jan 21, 2010 6:46 am
Hi
Actually, I'm building my own complete theme (is on kde-look btw).
I didn't touch the top level directory, and didn't use xdg-icon-resource.

I managed to install the new mimetype using "assogiate", that I didn't know before. It's a gnome app, but worked for me under Kde.
The problem is I don't know what changes it did (I just saw there was a new hicolor directory: ~/.local/share/icons/hicolor/48x48/mimetypes/, containing application-x-fpm.png) so I can't include it in the system.

Well, I'll keep searching.
Thank you

Centuri0
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

Re: Icons

Thu Jan 21, 2010 9:45 am
centuri0 wrote:I didn't touch the top level directory, and didn't use xdg-icon-resource.


I think the icon spec requires something like touching the top level directory or a specific file in there so icon cache implementations know that they have to rebuild the cache.

bonassis wrote:The problem is I don't know what changes it did (I just saw there was a new hicolor directory: ~/.local/share/icons/hicolor/48x48/mimetypes/, containing application-x-fpm.png) so I can't include it in the system.


Right, since you are installing you own icon theme you don't want to use the hicolor theme directory. However, this gives a good indication where the icon should go to: $prefix/icons/$themename/48x48/mimetypes

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]