coil: make rounded images more nuanced
Create a custom view for rounded images, making them more nuanced in the process. The previous method for applying rounded images in-app was generally clunky and fragile. Introduce a new custom view that actually takes a cornerRadius attribute from the ImageView itself that then applies it whenever the user enables the setting. This also allows rounded images to be more nuanced, as typical 8dp elevation can be used for small views and a more fitting 16dp radius can be used for large views.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Spacing Namespace | Dimens for padding/margin attributes -->
|
||||
<dimen name="spacing_tiny">4dp</dimen>
|
||||
<dimen name="spacing_small">8dp</dimen>
|
||||
<dimen name="spacing_medium">16dp</dimen>
|
||||
<dimen name="spacing_mid_large">24dp</dimen>
|
||||
@@ -17,6 +16,9 @@
|
||||
<dimen name="size_cover_mid_huge">192dp</dimen>
|
||||
<dimen name="size_cover_huge">256dp</dimen>
|
||||
|
||||
<dimen name="size_corners_small">8dp</dimen>
|
||||
<dimen name="size_corners_large">16dp</dimen>
|
||||
|
||||
<dimen name="size_track_number">32dp</dimen>
|
||||
<dimen name="size_playback_icon">32dp</dimen>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user