That’s not a silver bullet.
You can have a logo for your app that is coloured green. Then the user is using an all-green theme that happens to match the shade of your image and the logo is basically invisible.
That’s just easiest counter-example I could come up with.