Dear community,
I have made a SVG icon and put that in an image on my canvas. It looks great.
I have put a transparent PowerApps icon (and not a button) on top of it for the hovering and pressing properties
(and offcourse the pointing cursor).
I have declared a color in the OnStart:
to change the color of your svg if it being pressed, jsut place a button above it and make it transparent and set your svg color based on the .Pressed property of the invisible button
You can not alter the color of anything when something else is hovered above, and ONLY to self items on things that have a hovercolor/hoverfill/hoverbordercolor property. We can not unfortunately access the onhover info directly, or reference it.
Oke let's make it a little easier. I have an PowerApps icon with a Printer and an envelop as SVG file.
What i would like is when hovering over the printer the color of the SVG file changes. Also with the pressing of the icon. How can i do that?
Hey @PeKi72
Try something like this
On visible of first screen:
Set(defaults, {primaryColor: ColorValue("#6200EE"), hoverColor: ColorValue("#3700B3"), pressColor: ColorValue("#03DAC6")});
Onselect of icon
Set(currentColor, defaults.pressColor);
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
You could do it WHILE it is being pressed, or even permanently AFTER it has been pressed. But not while hovering, OnHover is not aproperty that exists for our use unfortunately.
mmbr1606
41
Super User 2025 Season 1
WarrenBelz
37
Most Valuable Professional
MS.Ragavendar
34