CRED-CLUB / synth-android

Synth is CRED's inbuilt library for using Neumorphic components in your app.
https://blog.cred.club/team-cred/design/world-meet-neumorphism-open-sourcing-our-ui-framework/
Apache License 2.0
1.01k stars 106 forks source link

How to give bottom depth color? #19

Closed rahulraghuwanshii closed 1 year ago

rahulraghuwanshii commented 1 year ago

Hello sir/mam,

I am using a synth for one of my projects, but the synth is not looking good in the light mode because the background is white. When I compare then found that in the sample synth app bottom shadow color is also there for pitview so could you please help me how I can change the pitview bottom shadow color?

I can change the top color using the pitColor attribute.

rahulraghuwanshii commented 1 year ago

or bottom depth not visible in white pitcolor

nikhilpanju-cred commented 1 year ago

You can check the example given under PitView here Try playing around with appearance attributes

<club.cred.synth.views.PitView
  app:pitViewAppearance="@style/pit_view_appearance"  
  app:neuCornerRadius="14dp"
  ... />

<style name="pit_view_appearance">
    <item name="neuLightShadowColor">...</item>
    <item name="neuDarkShadowColor">...</item>
    <item name="softEdgeColor">...</item>
    <item name="neuCompatColor">...</item>
</style>
rahulraghuwanshii commented 1 year ago

Thank you.