aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-06-23 04:32:28 +0200
committerRobert Jaros <rjaros@finn.pl>2019-06-23 04:32:28 +0200
commit72ef5f4fde6945e53a60cd5ac49437034ebcbd15 (patch)
tree680110c847395ce887647587ed3c5b4f0d73151e
parent1fb687a051d37d6d13bfdcc8f84e6cf1165cadc7 (diff)
downloadkvision-72ef5f4fde6945e53a60cd5ac49437034ebcbd15.tar.gz
kvision-72ef5f4fde6945e53a60cd5ac49437034ebcbd15.tar.bz2
kvision-72ef5f4fde6945e53a60cd5ac49437034ebcbd15.zip
Hardcode blue flash theme.
-rw-r--r--kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt6
1 files changed, 1 insertions, 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) {