different color of selected items in gallery powerApps code example
Example: powerapps highlight selected item in gallery
In TemplateFill Property of Gallery, use ThisItem.IsSelected to change the color.
If(
ThisItem.IsSelected,
White,
LightGray
)