fornewid / neumorphism

Try to Neumorphism in Android (Just experimental!! 🧪)
https://medium.com/@fornewid/neumorphism-in-android-9cf15e2122dc
Apache License 2.0
969 stars 155 forks source link

Incorrect dark mode shadow color #79

Closed nickbeth closed 3 years ago

nickbeth commented 3 years ago

Version used: 0.3.0 Devices/Android versions reproduced on: Samsung Galaxy S9+, OneUI 2.5, Android 10

image

As can be seen from the image, light mode works fine, while dark mode does not, which would require some nasty workarounds to get that working as expected.

I have this as my main theme: <style name="Theme.ControllerHub" parent="Theme.Neumorph.DayNight.NoActionBar"> That particular element is an ImageButton which I've set up following the sample code in the Readme. This also happens for the regular button.

Am I doing something wrong here?

nickbeth commented 3 years ago

I solved this issue by myself, I didn't understand how theme/style inheritance work, but I got it working now, I just needed to use <style name="Theme.Neumorph.ControllerHub" parent="Theme.Neumorph.DayNight.NoActionBar">