mirror of
https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
synced 2026-04-03 23:02:21 +00:00
complete rework
This commit is contained in:
@@ -74,6 +74,7 @@ class MavenInfoView : VerticalView("Project information") {
|
||||
) { projectVcsUrlProperty = it }
|
||||
|
||||
ButtonsPanel(
|
||||
"Gpg signing",
|
||||
GpgSigning.Disabled,
|
||||
GpgSigning.Optional,
|
||||
GpgSigning.Enabled
|
||||
|
||||
@@ -20,6 +20,7 @@ class ProjectTypeView : VerticalView("Project type") {
|
||||
|
||||
override val content: @Composable () -> Unit = {
|
||||
ButtonsPanel(
|
||||
"Project type",
|
||||
MultiplatformProjectType,
|
||||
JVMProjectType,
|
||||
JSProjectType
|
||||
|
||||
@@ -27,15 +27,17 @@ expect fun SwitchWithLabel(
|
||||
|
||||
@Composable
|
||||
expect fun <T> ButtonsPanel(
|
||||
title: String,
|
||||
data: Iterable<T>,
|
||||
itemDrawer: @Composable (T) -> Unit
|
||||
)
|
||||
|
||||
@Composable
|
||||
fun <T> ButtonsPanel(
|
||||
title: String,
|
||||
vararg data: T,
|
||||
itemDrawer: @Composable (T) -> Unit
|
||||
) = ButtonsPanel(data.toList(), itemDrawer)
|
||||
) = ButtonsPanel(title, data.toList(), itemDrawer)
|
||||
|
||||
@Composable
|
||||
expect fun DefaultDivider()
|
||||
|
||||
Reference in New Issue
Block a user