From 65703d1c22574e3a75e170a51bc2d49e984dd13b Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 21 Jan 2022 21:37:16 +0600 Subject: [PATCH] add Icon#Custom --- CHANGELOG.md | 2 ++ src/jsMain/kotlin/dev/inmo/jsuikit/elements/Icon.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89459c9..88813af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.0.13 +* Add `Icon#Custom` + ## 0.0.12 * Add `rowAttributes` to table fun diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Icon.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Icon.kt index 7ae3744..8e79559 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Icon.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Icon.kt @@ -226,6 +226,8 @@ sealed class Icon(val name: String) { } } + class Custom(name: String) : Icon(name) + @Composable fun drawAsButton( vararg modifiers: UIKitModifier,