You are not logged in.
Pages: 1
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
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
Thank you very much ToZ for these clear and didactic explanations!
Offline
Pages: 1
[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 522.84 KiB (Peak: 523.69 KiB) ]