Skip to content

Commit

Permalink
Library: Define default corner radius
Browse files Browse the repository at this point in the history
  • Loading branch information
fornewid committed Jun 2, 2020
1 parent 8f3e4b8 commit 8ca68db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neumorphism/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@

<style name="ShapeAppearance.Neumorph.Button" parent="">
<item name="neumorph_cornerFamily">rounded</item>
<item name="neumorph_cornerSize">24dp</item>
<item name="neumorph_cornerSize">@dimen/design_default_corner_radius</item>
</style>

<style name="ShapeAppearance.Neumorph.CardView" parent="">
<item name="neumorph_cornerFamily">rounded</item>
<item name="neumorph_cornerSize">36dp</item>
<item name="neumorph_cornerSize">@dimen/design_default_corner_radius</item>
</style>

<style name="ShapeAppearance.Neumorph.FloatingActionButton" parent="">
Expand All @@ -91,12 +91,12 @@

<style name="ShapeAppearance.Neumorph.ImageButton" parent="">
<item name="neumorph_cornerFamily">rounded</item>
<item name="neumorph_cornerSize">24dp</item>
<item name="neumorph_cornerSize">@dimen/design_default_corner_radius</item>
</style>

<style name="ShapeAppearance.Neumorph.ImageView" parent="">
<item name="neumorph_cornerFamily">rounded</item>
<item name="neumorph_cornerSize">24dp</item>
<item name="neumorph_cornerSize">@dimen/design_default_corner_radius</item>
</style>

</resources>
3 changes: 3 additions & 0 deletions neumorphism/src/main/res/values/values.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<!-- Default padding to avoid shadow clipping -->
<dimen name="design_default_shadow_padding">12dp</dimen>

<!-- Default corner radius -->
<dimen name="design_default_corner_radius">24dp</dimen>

<dimen name="edit_text_underline_inset_bottom">4dp</dimen>
<dimen name="edit_text_underline_height">5dp</dimen>
<dimen name="edit_text_underline_corner_size">2dp</dimen>
Expand Down

0 comments on commit 8ca68db

Please sign in to comment.