diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-06-23 12:33:55 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-06-23 12:33:55 +0200 |
commit | a382413a95e2b056e818c2acb4b524e9a87597e4 (patch) | |
tree | 8e67600448f03ed8f4d9de614915907b44e752d1 /kvision-modules | |
parent | 632a68c1c70b571ff4a75c14918f00adbf3cd5a0 (diff) | |
download | kvision-a382413a95e2b056e818c2acb4b524e9a87597e4.tar.gz kvision-a382413a95e2b056e818c2acb4b524e9a87597e4.tar.bz2 kvision-a382413a95e2b056e818c2acb4b524e9a87597e4.zip |
Working solution for pace theme selection.
Diffstat (limited to 'kvision-modules')
-rw-r--r-- | kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt | 34 |
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) { |