@Siegfried_VH
You cannot have an unselected row in a Gallery...there is always something selected. So, if you are basing off of IsSelected, you will have something with the Green color always.
If you are trying to create the illusion of something selected or not, then you will need to resort to a snapshot variable to get the illusion you want.
Ex. on the OnSelect of your Gallery, the following: UpdateContext({lclSelected: If(ThisItem.ID = lclSelected; 0; ThisItem.ID)})
Then in your TemplateFill:
If(ThisItem.ID = lclSelected; Green; GhostWhite)
I hope this is helpful for you.