Is there a way to change the pressed effect of a button on Android in a .NET MAUI project. Now it is showing a dark ripple effect when dark mode is on and a white ripple effect when the light mode is on. I would like to have the same ripple color for both dark and light mode. I tried to change the colorPrimary and colorPrimaryDark values but nothing changes.
Asked
Active
Viewed 1,063 times
1 Answers
0
The simplest way to achieve parity in both modes (and potentially across platforms) might be to override the button's default style with your own.
You can look into the default button style template, make a copy in you apps resources, and change the colors used to from default staticresource or dynamicresource to your desired color palette.

DevenCC
- 441
- 4
- 9
-
Those use storyboards which I do not think are supported in .NET MAUI. – Scott Kuhl Jan 27 '23 at 17:34