Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasyl Melnyk committed Aug 29, 2023
2 parents 8f1a6a3 + 845bdd8 commit d20cf01
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Features:

| RSBlur | SoftLayer | Elevation |
|-|-|-|
| <img src="/media/rs_blur.gif" width="240"/> | <img src="/media/soft_layer.gif" width="240"/> | <img src="/media/elevation.gif" width="240"/> |
| <img src="/media/rs_blur.gif" width="248"/> | <img src="/media/soft_layer.gif" width="248"/> | <img src="/media/elevation.gif" width="248"/> |

Download or clone this repository to discover the sample app.

Expand All @@ -46,7 +46,7 @@ dependencies {
}
```

Latest version is: ![](https://jitpack.io/v/GIGAMOLE/ComposeShadowsPlus.svg?style=flat-square).
Latest version: ![](https://jitpack.io/v/GIGAMOLE/ComposeShadowsPlus.svg?style=flat-square).

Also, it's possible to download the latest artifact from the [releases page](https://github.com/GIGAMOLE/ComposeShadowsPlus/releases).

Expand All @@ -58,15 +58,15 @@ Also, it's possible to download the latest artifact from the [releases page](htt

| Param | Description |
|-|-|
|radius|The shadow radius.|
|color|The shadow color.|
|shape|The shadow shape.|
|spread|The shadow positive or negative spread.|
|offset|The shadow offset.|
|`radius`|The shadow radius.|
|`color`|The shadow color.|
|`shape`|The shadow shape.|
|`spread`|The shadow positive or negative spread.|
|`offset`|The shadow offset.|

`ShadowsPlusDefaults` contains default values of custom shadows.

You can use `Modifier.shadowsPlus(...)` to set the custom shadows with `ShadowsPlusType` enum.
You can use `Modifier.shadowsPlus(...)` to set the custom shadows with the `ShadowsPlusType` enum.

### RSBlurShadow

Expand All @@ -76,13 +76,13 @@ You can use `Modifier.shadowsPlus(...)` to set the custom shadows with `ShadowsP

| Param | Description |
|-|-|
|alignRadius|The exponential align radius indicator.|
|`alignRadius`|The exponential align radius indicator.|

To apply `RSBlurShadow` use `Modifier.rsBlurShadow(...)`.

### SoftLayerShadow

`SoftLayerShadow` uses `NativePaint.setShadowLayer(...)` to apply native shadow layer to the shadow content.
`SoftLayerShadow` uses `NativePaint.setShadowLayer(...)` to apply the native shadow layer to the shadow content.

To render `SoftLayerShadow`, Android devices with API < 28(P), need to use `View.LAYER_TYPE_SOFTWARE`. It's recommended to use `SoftLayerShadowContainer` to handle this
automatically.
Expand Down

0 comments on commit d20cf01

Please sign in to comment.