You are not logged in.
Pages: 1
Hi !
I'm willing to add some extra emblems to my system ...
I'm aware about directories stuffs discusse in https://forum.xfce.org/viewtopic.php?id=5868
but,
I wonder about the best way to add thoses emblems,
that avoid to have to redo everything after a theme package update, for example.
The best being if the added emblems could be taken in account by all the installed icons themes at once :-))
May be, I'm asking too much ???
Thanks for help
@+
Last edited by dezix (2017-07-26 22:37:30)
Debian + XFCE since ... GNOME 3
Offline
One approach would be to create your own icon theme in ~/.icons that inherits from your normal icon theme - and then select your icon theme as the main one. This will allow you to avoid the issue of overwrites from package updates.
For example, to override the elementary icon theme, I would create an icon theme called "toz" in my ~/.icons folder. In that folder I have the following index.theme file (modelled after the index.theme file from the elementary icon theme):
[Icon Theme]
Name=toz
Comment=overrides to the elementary icon theme
Inherits=elementary
Example=directory-x-normal
#Directory list
Directories=emblems/16,emblems/24,emblems/32,emblems/48,emblems/64,emblems/128,emblems/symbolic
[emblems/16]
Size=16
Context=Emblems
MinSize=8
MaxSize=23
Type=Scalable
[emblems/24]
Size=24
Context=Emblems
MinSize=8
MaxSize=31
Type=Scalable
[emblems/32]
Size=32
Context=Emblems
MinSize=8
MaxSize=47
Type=Scalable
[emblems/48]
Size=48
Context=Emblems
MinSize=8
MaxSize=63
Type=Scalable
[emblems/64]
Size=64
Context=Emblems
MinSize=8
MaxSize=127
Type=Scalable
[emblems/128]
Size=128
Context=Emblems
MinSize=8
MaxSize=512
Type=Scalable
[emblems/symbolic]
Size=16
Context=Emblems
MinSize=8
MaxSize=512
Type=Scalable
...and place my icons in there. Make sure you run gtk-update-icon-cache on this folder everytime you change the icons.
Then finally select this icon theme in Appearance Settings. Because it inherits from the elementary icon theme, any icons that it doesn't have, will be taken from elementary's library.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
@ToZ
I was dreaming another way without duplicating the whole theme...
Sorry I'm still sleepy ... your way avoid to duplicate the whole because it is Inherit from the original theme.
It is exactly what I was looking for !
Thanks for waken me up :)))
Last edited by dezix (2017-07-26 14:55:36)
Debian + XFCE since ... GNOME 3
Offline
you also could just copy the icons to the hicolor theme because if your icon theme follows the standard( https://standards.freedesktop.org/icon- … le_formats ) then it will inherit the hicolor theme
$SYSPREFIX/share/icons/hicolor/$SIZE/emblems
or to your local prefix
$HOME/.local/share/icons/hicolor/$SIZE/emblems
Last edited by sixsixfive (2017-07-26 16:54:02)
Offline
@SSF
Hi!
Thanks.
This way, what's about the index.theme file ?
Is it necessary to put one in $HOME/.local/share/icons/hicolor or not ?
I'm using the Numix icons set, shoud be possible to use $HOME/.local/share/icons/Numix ? as Numix inherits from hicolor ?
Debian + XFCE since ... GNOME 3
Offline
>This way, what's about the index.theme file ?
you dont need it since the hicolor theme already has one.
>Is it necessary to put one in $HOME/.local/share/icons/hicolor or not ?
you can either copy the icons to the sysprefix(the hicolor icon theme itself) or into the home dir, if you use home then only the current user can see and use the icons(for example wine and user installed apps do it that way)
>I'm using the Numix icons set, shoud be possible to use $HOME/.local/share/icons/Numix ? as Numix inherits from hicolor ?
no if you use the numix folder then you will extend numix not hicolor, also numix will already inherit all icons from both hicolor directories
Last edited by sixsixfive (2017-07-26 18:28:48)
Offline
It works perfectly,
I've tried changing icons theme in Apparencies => custom emblems are present with others themes
Thanks for precisions.
Debian + XFCE since ... GNOME 3
Offline
Pages: 1
[ Generated in 0.072 seconds, 7 queries executed - Memory usage: 547.75 KiB (Peak: 548.59 KiB) ]