Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-07-24 12:28:00

dezix
Member
Registered: 2017-07-19
Posts: 17

[SOLVED] Added custom emblems & updates

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 wink

Offline

#2 2017-07-24 20:01:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] Added custom emblems & updates

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

#3 2017-07-26 08:45:02

dezix
Member
Registered: 2017-07-19
Posts: 17

Re: [SOLVED] Added custom emblems & updates

@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 wink

Offline

#4 2017-07-26 16:50:26

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: [SOLVED] Added custom emblems & updates

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

#5 2017-07-26 17:28:01

dezix
Member
Registered: 2017-07-19
Posts: 17

Re: [SOLVED] Added custom emblems & updates

@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 wink

Offline

#6 2017-07-26 18:28:10

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: [SOLVED] Added custom emblems & updates

>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

#7 2017-07-26 22:35:56

dezix
Member
Registered: 2017-07-19
Posts: 17

Re: [SOLVED] Added custom emblems & updates

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 wink

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.072 seconds, 7 queries executed - Memory usage: 547.75 KiB (Peak: 548.59 KiB) ]