Skip to content

Commit 868f94a

Browse files
committed
header comment added.
1 parent 88dbc58 commit 868f94a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

library/src/main/java/io/syslogic/colorpicker/compose/ColorPickerDialog.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ import androidx.compose.ui.window.Dialog
2525
import io.syslogic.colorpicker.OnColorChangedListener
2626
import io.syslogic.colorpicker.R
2727

28-
@Composable
29-
fun toSp(dp: Dp) = with(LocalDensity.current) { dp.toSp() }
30-
28+
/**
29+
* Jetpack Compose Color-Picker Dialog
30+
*
31+
* @author Martin Zeitler
32+
*/
3133
@Composable
3234
fun ColorPickerDialog(
3335
dialogTitle: String = LocalContext.current.getString(R.string.text_select_color),
@@ -97,3 +99,6 @@ fun ColorPickerDialog(
9799
}
98100
}
99101
}
102+
103+
@Composable
104+
fun toSp(dp: Dp) = with(LocalDensity.current) { dp.toSp() }

0 commit comments

Comments
 (0)