CRED-CLUB / synth-android

Synth is CRED's inbuilt library for using Neumorphic components in your app.

Home Page:https://blog.cred.club/team-cred/design/world-meet-neumorphism-open-sourcing-our-ui-framework/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Shadow Color

bhumikash-tech opened this issue · comments

I just want to know is there any way to change the color of Shadow in Elevated/Pit Views or in SynthButtons /SynthImageButtons????

Please reply this issue.....

issue happening with elevated view, i created a complete style reference as per documentation,
here is my code,

<style name="Theme.MyApp.ElevatedView"> <item name="neuLightShadowColor">@color/synth_light_shadow_color_light</item> <item name="neuDarkShadowColor">@color/synth_dark_shadow_light</item> <item name="neuFillStartColor">@color/synth_light</item> <item name="neuFillEndColor">@color/synth_light</item> <item name="neuBorderStartColor">@color/synth_light</item> <item name="neuBorderEndColor">@color/synth_light</item> </style>

<club.cred.synth.views.ElevatedView android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:neuCornerRadius="@dimen/pit_corner_radius" app:neuPlatformAppearance="@style/Theme.MyApp.ElevatedView" app:neuShadowOffset="2dp" />

but elevated view's appearance is not changing