summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaewoong Eum <skydoves@naver.com>2026-07-19 02:51:15 +0300
committerGitHub <noreply@github.com>2026-07-19 02:51:15 +0300
commit9efc11535440c0db45fbb2e5bdcb94f2e6e355da (patch)
tree511b484cccd5d425e31ec020c6566223aba40f1d
parent85f81afbccaf5c0837e402686b8db9d67cc74c59 (diff)
parent317e74409d224860112983876f7ef14fd2492f9c (diff)
downloadcolorpicker-compose-9efc11535440c0db45fbb2e5bdcb94f2e6e355da.tar.xz
Merge pull request #191 from iprashantpanwar/fix/slider-typos-and-kdoc
Fix typos and misplaced KDoc across slider components
-rw-r--r--README.md8
-rw-r--r--colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/AlphaSlider.kt4
-rw-r--r--colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/BrightnessSlider.kt2
-rw-r--r--colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/PaletteContentScale.kt2
-rw-r--r--colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/Slider.kt4
5 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index b38226b..3d881e3 100644
--- a/README.md
+++ b/README.md
@@ -112,7 +112,7 @@ ImageColorPicker(
)
```
-With the [modernstorage](https://github.com/google/modernstorage)'s [Photo Picker](https://google.github.io/modernstorage/photopicker/), you can set an desired image as the palette like the below:
+With the [modernstorage](https://github.com/google/modernstorage)'s [Photo Picker](https://google.github.io/modernstorage/photopicker/), you can set a desired image as the palette like the below:
```kotlin
val context = LocalContext.current
@@ -255,7 +255,7 @@ AlphaSlider(
)
```
-You can customize the border of the sider with the following parameters:
+You can customize the border of the slider with the following parameters:
```kotlin
AlphaSlider(
@@ -266,7 +266,7 @@ AlphaSlider(
)
```
-You can customize the wheel of the sider with the following parameters:
+You can customize the wheel of the slider with the following parameters:
```kotlin
AlphaSlider(
@@ -307,7 +307,7 @@ BrightnessSlider(
)
```
-You can customize the wheel of the sider with the following parameters:
+You can customize the wheel of the slider with the following parameters:
```kotlin
BrightnessSlider(
diff --git a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/AlphaSlider.kt b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/AlphaSlider.kt
index b8f5f7d..b9adeaa 100644
--- a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/AlphaSlider.kt
+++ b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/AlphaSlider.kt
@@ -35,15 +35,15 @@ import androidx.compose.ui.unit.dp
* @param borderColor [Color] of the border.
* @param wheelImageBitmap [ImageBitmap] to draw the wheel.
* @param wheelRadius Radius of the wheel.
- * @param wheelColor [Color] of th wheel.
+ * @param wheelColor [Color] of the wheel.
* @param wheelPaint [Paint] to draw the wheel.
* @param tileOddColor Color of the odd tiles.
* @param tileEvenColor Color of the even tiles.
* @param tileSize DP size of tiles.
* @param initialColor [Color] of the initial state. This property works for [HsvColorPicker] and
+ * it will be selected on rightmost of slider if you give null value.
* @param onStart Callback invoked when user interaction with the slider starts.
* @param onFinish Callback invoked when user interaction with the slider ends.
- * it will be selected on rightmost of slider if you give null value.
*/
@Composable
public fun AlphaSlider(
diff --git a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/BrightnessSlider.kt b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/BrightnessSlider.kt
index dd99ce8..b087f64 100644
--- a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/BrightnessSlider.kt
+++ b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/BrightnessSlider.kt
@@ -34,7 +34,7 @@ import androidx.compose.ui.unit.dp
* @param borderColor [Color] of the border.
* @param wheelImageBitmap [ImageBitmap] to draw the wheel.
* @param wheelRadius Radius of the wheel.
- * @param wheelColor [Color] of th wheel.
+ * @param wheelColor [Color] of the wheel.
* @param wheelPaint [Paint] to draw the wheel.
* @param initialColor [Color] of the initial state. This property works for [HsvColorPicker] and
* it will be selected on rightmost of slider if you give null value.
diff --git a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/PaletteContentScale.kt b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/PaletteContentScale.kt
index 57c9834..6d9fc0f 100644
--- a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/PaletteContentScale.kt
+++ b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/PaletteContentScale.kt
@@ -25,7 +25,7 @@ public enum class PaletteContentScale {
FIT,
/**
- * Crop ths source the corresponding dimension of the target size.
+ * Crop the source the corresponding dimension of the target size.
* so that if the dimensions (width and height) source is bigger than the target size,
* it will be cut off from the center.
*/
diff --git a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/Slider.kt b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/Slider.kt
index 01adb5e..bcebc1f 100644
--- a/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/Slider.kt
+++ b/colorpicker-compose/src/commonMain/kotlin/com/github/skydoves/colorpicker/compose/Slider.kt
@@ -44,7 +44,7 @@ import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.dp
/**
- * Slider allows you to adjust the a value of the selected color from color pickers.
+ * Slider allows you to adjust the value of the selected color from color pickers.
* See [AlphaSlider] and [BrightnessSlider] for concrete versions.
*
* @param modifier [Modifier] to decorate the internal Canvas.
@@ -54,7 +54,7 @@ import androidx.compose.ui.unit.dp
* @param borderColor [Color] of the border.
* @param wheelImageBitmap [ImageBitmap] to draw the wheel.
* @param wheelRadius Radius of the wheel.
- * @param wheelColor [Color] of th wheel.
+ * @param wheelColor [Color] of the wheel.
* @param wheelPaint [Paint] to draw the wheel.
* @param initialColor [Color] of the initial state. This property works for [HsvColorPicker] and
* it will be selected on rightmost of slider if you give null value.