commonMain.SemanticColor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semanticui Show documentation
Show all versions of semanticui Show documentation
"Smemantic UI on top of kotlinx/html"
@file:Suppress("Detekt:EnumNaming", "Detekt:VariableNaming")
package de.peekandpoke.kraft.semanticui
@Suppress("EnumEntryName", "unused")
enum class SemanticColor {
none,
default,
white,
red,
orange,
yellow,
olive,
green,
teal,
blue,
violet,
purple,
pink,
brown,
grey,
black;
val isSet get() = this != default && this != none
infix fun or(other: SemanticColor) = when (this) {
none -> other
else -> this
}
}