You are not logged in.

#1 2016-05-15 17:10:53

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

[Solved] KDE How to modify icon themes properly?

Hello, I have downloaded an icon theme for KDE, but I want to modify it in some parts. The thing is, that I am using the Alt Tab Design, where you see a big icon for each application (like the default one for Mac OS).
The problem is that some of the icons are too low resolution, so they look ugly in Alt Tab. I already found the high resolution icons, but where do I change it now? Using find I found some icon directories like /usr/share/icons, but it didn't work, when I just put the file there. So what do I need to do? Also do I need a svg or png?

Last edited by Magnus2552 (2016-05-18 20:16:00)

Offline

#2 2016-05-16 08:12:50

Rog131
Member
Registered: 2015-08-23
Posts: 90

Re: [Solved] KDE How to modify icon themes properly?

Arch wiki of icons: https://wiki.archlinux.org/index.php/Icons
Have information of
- Icon Theme Specification
- Icon themes

KDE - (Arch wiki: https://wiki.archlinux.org/index.php/KDE )

The KDE is using caches so after I have edited a icon theme:

- change the icon theme from the edited theme
- remove the icon cache:  ~/.cache/icon-cache.kcache
- restart all applications and the plamashell
- change the icon theme to the edited theme
- rebuild the caches:  'kbuildsycoca5 --noincremental'

Offline

#3 2016-05-16 16:17:41

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

Re: [Solved] KDE How to modify icon themes properly?

Sorry, if I am dumb, but I cannot seem to get it working...
I am already only focussing on only installing a single icon, but it still fails...
So, I have got an alternative firefox icon downloaded and I am navigated to its folder and I do the following command to install it to the Lüv Dark theme:

xdg-icon-resource install --theme Lüv\ Dark --size 128 firefox.png --novendor firefox

Now what this did, was creating this folder: ~/.local/share/icons/Lüv Dark/128x128/apps/ and putting firefox.png in it.
After that I also copied the file to /usr/share/icons/Lüv Dark/apps/128x128/
After that I temporary changed the theme to Breeze and rebuilt the icon cache:

rm ~/.cache/icon-cache.kcache && kbuildsycoca5 --noincremental

I then changed the icon theme back to Lüv Dark, but the Firefox icon still is the old one... sad
I also logged out and in again.
Pls help me, am I missing any important step?

Last edited by Magnus2552 (2016-05-16 16:18:26)

Offline

#4 2016-05-17 11:03:15

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

Re: [Solved] KDE How to modify icon themes properly?

Ok, so now I figured out by myself what was missing. For future reference, I will describe what I did:
My theme is called "Lüv Dark". So in my example I already had copied my 128x128 sized firefox.png to /usr/share/icons/Lüv Dark/apps/128x128/firefox.png and I navigated to /usr/share/icons/Lüv Dark/ and I found a file called index.theme
Now one has to make sure two things in this file. First there has to be "apps/128x128" listet in the line with the directories and also there has to be an entry later in the file like this:

[apps/128x128]
Size=128
Context=Applications
Type=Fixed

Then save the file, go to the Icon settings and temporaly change the icon theme to something else. Then type in a terminal:

rm ~/.cache/icon-cache.kcache && kbuildsycoca5 --noincremental

Now when you change back your theme to Lüv Dark, the firefox icon has successfully changed ...
except the Alt Tab icon still is the old one. I have a screenshot for you: http://imgur.com/dzCVMuQ
As you can see on the right side in the taskbar, the icon for firefox has successfully changed. The firefox icon has also be changed for the desktop link, start menu etc...
Only the Alt Tab icon still is the old firefox icon. Does anyone know what I have to do to change it?

Offline

#5 2016-05-18 09:23:20

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,238

Re: [Solved] KDE How to modify icon themes properly?

Is it the case that when themes change in packages that update via pacman that the last command you used is also executed during the update I wonder?

Last edited by mcloaked (2016-05-18 09:23:37)


Mike C

Offline

#6 2016-05-18 17:36:06

Rog131
Member
Registered: 2015-08-23
Posts: 90

Re: [Solved] KDE How to modify icon themes properly?

At here

Downloading the luv-icon-theme: https://github.com/NitruxSA/luv-icon-theme/wiki

Unpacking the luv-icon-theme-master.zip
Reading the README.md

Move the folder(s) *Luv* and *Luv Dark* ... or `~/.local/share/icons` for Plasma 5.

Adding  Firefox icon to the ~/.local/share/icons/Lüv Dark/apps/64/firefox.svg
Using 'Cute Fox' svg: http://svgcuts.com/blog/2013/01/15/cute … te-sizzix/

Shutting the plasmashell down

kquitapp5 plasmashell

Cleaning all cache files (plasma, icon) from the ~/.cache/
Restarting plasmahell:

plasmashell

Turning the Icon theme to Dark Lüv.
Rebuilding the icon cache:

kbuildsycoca5 --noincremental

Testing....

The Firefox Window icon is still the default - and so it the   Alt + Tab / Task Switcher ?? ( https://userbase.kde.org/System_Setting … _Behaviour ) icon.

An older - https://bugs.kde.org/show_bug.cgi?id=294163

Martin Gräßlin 2012-02-15 17:48:10 UTC
...We use the largest icon provided by the window...

The Firefox Window icon: https://developer.mozilla.org/en-US/doc … ndow_icons
There is a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=543490

At here, the Firefox 47 beta is directly from the Mozilla and it is installed to the /usr/local/. So adding:
/usr/local/firefox/browser/chrome/icons/default/main-window.png


Now the Firefox Window icon is same at the Icon theme icon and the Alt + Tab is showing: http://i.imgur.com/DCwlx3l.png

Last edited by Rog131 (2016-05-18 17:41:49)

Offline

#7 2016-05-18 17:55:05

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

Re: [Solved] KDE How to modify icon themes properly?

Wow, that's a badass of a guide! Thank you very much! smile Finally I can fix this minor, yet ultimatively annoying problem, thanks!
I will mark this thread solved as soon as I have reproduced the solution on my system.

Last edited by Magnus2552 (2016-05-18 18:01:03)

Offline

#8 2016-05-18 20:14:55

Magnus2552
Member
Registered: 2016-04-07
Posts: 63

Re: [Solved] KDE How to modify icon themes properly?

I just had the hugest facepalm ever...
I tried your solution and found my */firefox/browser/chrome/icons/default folder, which was in a different location than yours, since I have the stable Firefox from pacman. I tried some things out and I didn't seem to get it working. However, suddenly I stumbled across the section in the GUI KDE system settings where you can choose your GTK theme (nothing special expected here!), except... there is also an icon section for the GTK theme, independent of the global icon theme. And somehow my GTK icon theme was set to breeze-dark. So I changed my icon theme to the one I wanted and boom the Alt Tab design showed the correct icon.
I don't know what the hell I tried, when all I had to do is change a simple GUI switch (again facepalm)...
Thanks anyways for all your help and efforts smile

Last edited by Magnus2552 (2016-05-18 20:15:25)

Offline

Board footer

Powered by FluxBB