aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-pace/src/main/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-06-23 12:33:55 +0200
committerRobert Jaros <rjaros@finn.pl>2019-06-23 12:33:55 +0200
commita382413a95e2b056e818c2acb4b524e9a87597e4 (patch)
tree8e67600448f03ed8f4d9de614915907b44e752d1 /kvision-modules/kvision-pace/src/main/kotlin
parent632a68c1c70b571ff4a75c14918f00adbf3cd5a0 (diff)
downloadkvision-a382413a95e2b056e818c2acb4b524e9a87597e4.tar.gz
kvision-a382413a95e2b056e818c2acb4b524e9a87597e4.tar.bz2
kvision-a382413a95e2b056e818c2acb4b524e9a87597e4.zip
Working solution for pace theme selection.
Diffstat (limited to 'kvision-modules/kvision-pace/src/main/kotlin')
-rw-r--r--kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt34
1 files changed, 1 insertions, 33 deletions
diff --git a/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt b/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt
index ceb4cc10..d5c77534 100644
--- a/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt
+++ b/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt
@@ -137,41 +137,9 @@ class PaceOptions(
}
}
-enum class PaceColor(var paceColorString: String) {
- Black("black"),
- Blue("blue"),
- Green("green"),
- Orange("orange"),
- Pink("pink"),
- Purple("purple"),
- Red("red"),
- Silver("silver"),
- White("white"),
- Yellow("yellow")
-}
-
-enum class PaceTheme(var paceThemeString: String) {
- BarberShop("barber-shop"),
- BigCounter("big-counter"),
- Bounce("bounce"),
- CenterAtom("center-atom"),
- CenterCircle("center-circle"),
- CenterRadar("center-radar"),
- CenterSimple("center-simple"),
- CornerIndicator("corner-indicator"),
- FillLeft("fill-left"),
- Flash("flash"),
- FlatTop("flat-top"),
- LoadingBar("loading-bar"),
- MacOSX("mac-osx"),
- Material("material"),
- Minimal("minimal")
-}
-
class Pace {
companion object {
- fun init() {
- require("pace-progressbar/themes/blue/pace-theme-flash.css")
+ fun init(req: dynamic = require("pace-progressbar/themes/blue/pace-theme-flash.css")) {
}
fun setOptions(options: PaceOptions) {