From 72ef5f4fde6945e53a60cd5ac49437034ebcbd15 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 23 Jun 2019 04:32:28 +0200 Subject: Hardcode blue flash theme. --- .../kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt | 6 +----- 1 file changed, 1 insertion(+), 5 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 e429ff77..ceb4cc10 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 @@ -171,11 +171,7 @@ enum class PaceTheme(var paceThemeString: String) { class Pace { companion object { fun init() { - setNewTheme(PaceColor.Blue, PaceTheme.Flash) - } - - fun setNewTheme(color: PaceColor, theme: PaceTheme) { - require("pace-progressbar/themes/${color.paceColorString}/pace-theme-${theme.paceThemeString}.css") + require("pace-progressbar/themes/blue/pace-theme-flash.css") } fun setOptions(options: PaceOptions) { -- cgit