Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-26 13:31:32

jlfh0816
Member
Registered: 2022-10-05
Posts: 16

[ solved ] genmon <img> and <icon> tags

When using Genmon, I don't understand the difference in usage between <img> and <icon> tags.
I suppose that if the two tags exist, it's because their reasons for existing are different... ?

For example, which is the most recommended for displaying an image?

Another question: can <img> and <icon> be displayed simultaneously?
I tried and could only display the other or the other, never both simultaneously.

Many thanks in advance!

Last edited by jlfh0816 (2022-10-26 19:40:06)

Offline

#2 2022-10-26 16:10:33

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

Re: [ solved ] genmon <img> and <icon> tags

The <img> tag is for a specific image file.  The <icon> tag is for an icon from the current icon theme. So for example:

<img>/usr/share/pixmaps/xfce.png</image>
...or...
<icon>gtk-edit</icon>

You can only use one or the other.

With the <icon> tag you get access to a couple of other features:
- if you change the icon theme, the icon will change as well to match
- some icon themes support both light and dark icons. If you change the light/dark appearance, the icon will change colors as well.


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 2022-10-26 18:17:52

jlfh0816
Member
Registered: 2022-10-05
Posts: 16

Re: [ solved ] genmon <img> and <icon> tags

Thank you very much ToZ for these clear and didactic explanations!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 522.84 KiB (Peak: 523.69 KiB) ]