Hi,
I’m using IcingaWeb’s default themes (dark and light) and trying to create icons (for hosts, services, and other module assets) that automatically change their background color based on the user’s theme.
Could anyone tell me if this is possible?
I tried using SVG icons (rendered with the <svg>
tag and fill="currentColor"
) in my personal module, and it works fine. Unfortunately, that doesn’t work for SVG or PNG icons rendered using the <img>
tag.
Has anyone else tried something like this?
- Icinga Web 2 version:
2.12.4
- Icinga DB version:
v1.4.0
- Icinga DB Web version:
1.2.0
- Icinga Redis version:
7.2.9
- Web browser:
Google Chrome 137.0.7151.120
- Icinga 2 version:
r2.15.0-1
- PHP version:
8.3.6
- Server operating system and version:
Ubuntu Server 24.04.2 LTS