Changing style for elements using showAlternatingRowBackgrounds

I have a ListView using the showAlternatingRowBackgrounds property, but the odd row’s style is terrible (bad contrast/colour combination). Is it possible to redefine the style used either through uss or via the code?

Can you try overriding the background color of this uss class: “.unity-collection-view__item–alternative-background”

Yes that did the trick. and .unity-collection-view__item to set the odd lines.

Many thanks for your help, I never would have found those otherwise.

1 Like