I have a gallery that is populated with a list of items coming from an excel source. I have this in the Transparency property of the first item in the gallery(applicable to all items).
If(ThisItem.IsSelected, 0,0.4)
I get the exact thing I want but rather than the Transparency of those images being faded as they are not selected I would like to have the saturation of the colors to 0 (aka, grey scale icons). How would this be achievable ?
PS, my items are only displayed with a logo from the excel sheet(link), so no other info but an icon is to select from.
Thank you !
Solved! Go to Solution.
I don't believe there's a way to change the saturation on an uploaded image. Another option would be to separately upload two images of each logo -- one in greyscale and one in full colour -- and then set 'Visible' on the Greyscale image to !ThisItem.IsSelected and set 'Visible' on the colour image to ThisItem.IsSelected.
Hi @creatiiive ,
Instead of changing the image transparency -- what you can do is put a rectangle (from icons) in front of the image and then change the 'Fill' of that rectangle based on whether or not that item is selected. For example, you could use this code for the Rectangle Fill:
RGBA(0, 0, 0, If(ThisItem.IsSelected, 0, 0.75))
This is still changing transparency, but might achieve the effect that you're after.
This is the result, which is not a greyscale of icons.
The image below is what i want to do.
I don't believe there's a way to change the saturation on an uploaded image. Another option would be to separately upload two images of each logo -- one in greyscale and one in full colour -- and then set 'Visible' on the Greyscale image to !ThisItem.IsSelected and set 'Visible' on the colour image to ThisItem.IsSelected.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
53 | |
50 | |
37 | |
36 |
User | Count |
---|---|
274 | |
91 | |
85 | |
76 | |
75 |