freeciv21
freeciv21 copied to clipboard
Add "Clean Nuclear Fallout" to "Unit Controls" widget
fallout.svg
is based on https://commons.wikimedia.org/wiki/File:Radioactive_White.svg
Closes #2273
Without this PR:
With this PR:
@blabber would you pls upload the save game you have w/ fallout?
You need to add fill="#000"
to the top level <svg
open tag for it to work for both light and dark themes. On my local I did this
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="#000" ...
You need to add
fill="#000"
to the top level<svg
open tag for it to work for both light and dark themes.
I changed fallout.svg
as requested, but to be honest I still don't see any difference in light and dark theme (see screenshots below). Which irritates me even more, is that other icons (for example mine.svg
) don't have this fill
in their opening <svg ...
tag.
Screenshots
Light theme
Dark theme
Thanks for the update and submission of the icon. I am able to reproduce on my local too. I guess something is diff with how we do the unit controls bar vs other UI elements in the game that need that fill code.