We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88dbc58 commit 868f94aCopy full SHA for 868f94a
library/src/main/java/io/syslogic/colorpicker/compose/ColorPickerDialog.kt
@@ -25,9 +25,11 @@ import androidx.compose.ui.window.Dialog
25
import io.syslogic.colorpicker.OnColorChangedListener
26
import io.syslogic.colorpicker.R
27
28
-@Composable
29
-fun toSp(dp: Dp) = with(LocalDensity.current) { dp.toSp() }
30
-
+/**
+ * Jetpack Compose Color-Picker Dialog
+ *
31
+ * @author Martin Zeitler
32
+ */
33
@Composable
34
fun ColorPickerDialog(
35
dialogTitle: String = LocalContext.current.getString(R.string.text_select_color),
@@ -97,3 +99,6 @@ fun ColorPickerDialog(
97
99
}
98
100
101
102
+
103
+@Composable
104
+fun toSp(dp: Dp) = with(LocalDensity.current) { dp.toSp() }
0 commit comments