From a82fdb917283f99e648b15fece1125d0befa5aba Mon Sep 17 00:00:00 2001
From: Roman Levinzon
- Mosaic 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. + Mosaic 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.
diff --git a/docs/slider.md b/docs/slider.md index c241589..c10dcda 100644 --- a/docs/slider.md +++ b/docs/slider.md @@ -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 @@ -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, ) ``` @@ -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 ) @@ -181,7 +181,7 @@ object MyDistribution: SliderValueDistribution { override fun inverse(value: Float): Float { // inverse value } - +s override fun interpolate(value: Float): Float { // interpolate value }