I am not sure if a solution similar to this one of @Aravisian can help with white icons on light taskbar
or this one
When the icons are from flatpak-apps, they often don't respect system theme settings. You could then try this: