Skip to content

Commit

Permalink
docs: update Docs and Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
levinzonr committed May 7, 2024
1 parent e8b1177 commit a82fdb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</p>

<p align="center" style="font-size: 15px;">
<strong>Mosaic</strong> is acollection of Jetpack Compose UI components and utilities. It is designed to accelerate the development process by providing a rich set of tools and components that are ready to use out of the box. These components are highly customizable ensuring to fit in your use case.
<strong>Mosaic</strong> is a collection of Jetpack Compose UI components and utilities. It is designed to accelerate the development process by providing a rich set of tools and components that are ready to use out of the box. These components are highly customizable ensuring to fit in your use case.
</p>


Expand Down
10 changes: 5 additions & 5 deletions docs/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ By specifying disabled range you limit where user can drag the thumb, thus makin
You can specifiy the `disabledRange` in two ways, depending on how you manage the slider state

```kotlin
val slideState = rememberSliderState(
val slideState = rememberMosaicSliderState(
initialValue = 10f,
range = 0f..100f,
disabledRange = 40f..60f // disables range from 40 to 60
Expand All @@ -113,10 +113,10 @@ val slideState = rememberSliderState(
Or when using state-less option

```kotlin
Slider(
MosaicSlider(
value = 10f,
onValueChange = { },
colors = SliderColors(Color.Green),
colors = MosaicSliderColors(Color.Green),
disabledRange = 40f..60f,
)
```
Expand All @@ -126,7 +126,7 @@ Finally you might want to provide custom colors for this range to make sure the
The color of the disabled range is controlled by the `disabledRangeTrackColor` property of `AppColors`. By default it is the same as the `activeTrackColor`

```kotlin
val colors = SliderColors(
val colors = MosaicSliderColors(
activeTrackColor = Color.Green,
disabledRangeTrackColor = Color.Red
)
Expand Down Expand Up @@ -181,7 +181,7 @@ object MyDistribution: SliderValueDistribution {
override fun inverse(value: Float): Float {
// inverse value
}

s
override fun interpolate(value: Float): Float {
// interpolate value
}
Expand Down

0 comments on commit a82fdb9

Please sign in to comment.