aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/Showcase.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/css/Css.kt142
2 files changed, 140 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
index dc45e93b..6a7d2ee0 100644
--- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
@@ -175,7 +175,7 @@ class Showcase : ApplicationBase() {
dock.add(Label("up"), SIDE.UP)
dock.add(Label("down"), SIDE.DOWN)
dock.add(Label("center"), SIDE.CENTER)
- dock.border = Border(7.px(), BORDERSTYLE.INSET, 0xdddddd)
+ dock.border = Border(7.px(), BORDERSTYLE.INSET, COLOR.DARKVIOLET)
// root.add(dock)
val pa = HPanel(alignItems = FLEXALIGNITEMS.FLEXEND)
diff --git a/src/main/kotlin/pl/treksoft/kvision/css/Css.kt b/src/main/kotlin/pl/treksoft/kvision/css/Css.kt
index 14c242e8..ce92813f 100644
--- a/src/main/kotlin/pl/treksoft/kvision/css/Css.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/css/Css.kt
@@ -38,11 +38,147 @@ enum class BORDERSTYLE(val borderStyle: String) {
}
enum class COLOR(val color: String) {
- RED("red"),
+ ALICEBLUE("aliceblue"),
+ ANTIQUEWHITE("antiquewhite"),
+ AQUA("aqua"),
+ AQUAMARINE("aquamarine"),
+ AZURE("azure"),
+ BEIGE("beige"),
+ BISQUE("bisque"),
+ BLACK("black"),
+ BLANCHEDALMOND("blanchedalmond"),
BLUE("blue"),
+ BLUEVIOLET("blueviolet"),
+ BROWN("brown"),
+ BURLYWOOD("burlywood"),
+ CADETBLUE("cadetblue"),
+ CHARTREUSE("chartreuse"),
+ CHOCOLATE("chocolate"),
+ CORAL("coral"),
+ CORNFLOWERBLUE("cornflowerblue"),
+ CORNSILK("cornsilk"),
+ CRIMSON("crimson"),
+ CYAN("cyan"),
+ DARKBLUE("darkblue"),
+ DARKCYAN("darkcyan"),
+ DARKGOLDENROD("darkgoldenrod"),
+ DARKGRAY("darkgray"),
+ DARKGREEN("darkgreen"),
+ DARKKHAKI("darkkhaki"),
+ DARKMAGENTA("darkmagenta"),
+ DARKOLIVEGREEN("darkolivegreen"),
+ DARKORANGE("darkorange"),
+ DARKORCHID("darkorchid"),
+ DARKRED("darkred"),
+ DARKSALMON("darksalmon"),
+ DARKSEAGREEN("darkseagreen"),
+ DARKSLATEBLUE("darkslateblue"),
+ DARKSLATEGRAY("darkslategray"),
+ DARKTURQUOISE("darkturquoise"),
+ DARKVIOLET("darkviolet"),
+ DEEPPINK("deeppink"),
+ DEEPSKYBLUE("deepskyblue"),
+ DIMGRAY("dimgray"),
+ DODGERBLUE("dodgerblue"),
+ FIREBRICK("firebrick"),
+ FLORALWHITE("floralwhite"),
+ FORESTGREEN("forestgreen"),
+ FUCHSIA("fuchsia"),
+ GAINSBORO("gainsboro"),
+ GHOSTWHITE("ghostwhite"),
+ GOLD("gold"),
+ GOLDENROD("goldenrod"),
+ GRAY("gray"),
GREEN("green"),
- BLACK("black"),
- WHITE("white")
+ GREENYELLOW("greenyellow"),
+ HONEYDEW("honeydew"),
+ HOTPINK("hotpink"),
+ INDIANRED("indianred"),
+ INDIGO("indigo"),
+ IVORY("ivory"),
+ KHAKI("khaki"),
+ LAVENDER("lavender"),
+ LAVENDERBLUSH("lavenderblush"),
+ LAWNGREEN("lawngreen"),
+ LEMONCHIFFON("lemonchiffon"),
+ LIGHTBLUE("lightblue"),
+ LIGHTCORAL("lightcoral"),
+ LIGHTCYAN("lightcyan"),
+ LIGHTGOLDENRODYELLOW("lightgoldenrodyellow"),
+ LIGHTGRAY("lightgray"),
+ LIGHTGREEN("lightgreen"),
+ LIGHTPINK("lightpink"),
+ LIGHTSALMON("lightsalmon"),
+ LIGHTSEAGREEN("lightseagreen"),
+ LIGHTSKYBLUE("lightskyblue"),
+ LIGHTSLATEGRAY("lightslategray"),
+ LIGHTSTEELBLUE("lightsteelblue"),
+ LIGHTYELLOW("lightyellow"),
+ LIME("lime"),
+ LIMEGREEN("limegreen"),
+ LINEN("linen"),
+ MAGENTA("magenta"),
+ MAROON("maroon"),
+ MEDIUMAQUAMARINE("mediumaquamarine"),
+ MEDIUMBLUE("mediumblue"),
+ MEDIUMORCHID("mediumorchid"),
+ MEDIUMPURPLE("mediumpurple"),
+ MEDIUMSEAGREEN("mediumseagreen"),
+ MEDIUMSLATEBLUE("mediumslateblue"),
+ MEDIUMSPRINGGREEN("mediumspringgreen"),
+ MEDIUMTURQUOISE("mediumturquoise"),
+ MEDIUMVIOLETRED("mediumvioletred"),
+ MIDNIGHTBLUE("midnightblue"),
+ MINTCREAM("mintcream"),
+ MISTYROSE("mistyrose"),
+ MOCCASIN("moccasin"),
+ NAVAJOWHITE("navajowhite"),
+ NAVY("navy"),
+ OLDLACE("oldlace"),
+ OLIVE("olive"),
+ OLIVEDRAB("olivedrab"),
+ ORANGE("orange"),
+ ORANGERED("orangered"),
+ ORCHID("orchid"),
+ PALEGOLDENROD("palegoldenrod"),
+ PALEGREEN("palegreen"),
+ PALETURQUOISE("paleturquoise"),
+ PALEVIOLETRED("palevioletred"),
+ PAPAYAWHIP("papayawhip"),
+ PEACHPUFF("peachpuff"),
+ PERU("peru"),
+ PINK("pink"),
+ PLUM("plum"),
+ POWDERBLUE("powderblue"),
+ PURPLE("purple"),
+ REBECCAPURPLE("rebeccapurple"),
+ RED("red"),
+ ROSYBROWN("rosybrown"),
+ ROYALBLUE("royalblue"),
+ SADDLEBROWN("saddlebrown"),
+ SALMON("salmon"),
+ SANDYBROWN("sandybrown"),
+ SEAGREEN("seagreen"),
+ SEASHELL("seashell"),
+ SIENNA("sienna"),
+ SILVER("silver"),
+ SKYBLUE("skyblue"),
+ SLATEBLUE("slateblue"),
+ SLATEGRAY("slategray"),
+ SNOW("snow"),
+ SPRINGGREEN("springgreen"),
+ STEELBLUE("steelblue"),
+ TAN("tan"),
+ TEAL("teal"),
+ THISTLE("thistle"),
+ TOMATO("tomato"),
+ TURQUOISE("turquoise"),
+ VIOLET("violet"),
+ WHEAT("wheat"),
+ WHITE("white"),
+ WHITESMOKE("whitesmoke"),
+ YELLOW("yellow"),
+ YELLOWGREEN("yellowgreen")
}
class Border private constructor(private val width: CssSize? = null, private val style: BORDERSTYLE? = null,