diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-06-22 00:33:36 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-06-22 00:33:36 +0200 |
commit | 6b4b19c45f81dcedb664daaaec2c154bdb56719f (patch) | |
tree | 68078df34004135ae91b5b61d5ffdacf53d5bafd /kvision-modules | |
parent | 03b0a40a8a25c2979b91bc3a5c5d2e9f7014192f (diff) | |
download | kvision-6b4b19c45f81dcedb664daaaec2c154bdb56719f.tar.gz kvision-6b4b19c45f81dcedb664daaaec2c154bdb56719f.tar.bz2 kvision-6b4b19c45f81dcedb664daaaec2c154bdb56719f.zip |
Simple initialization for Pace module.
Diffstat (limited to 'kvision-modules')
-rw-r--r-- | kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt | 5 |
1 files changed, 5 insertions, 0 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 aacde82b..e429ff77 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 @@ -1,5 +1,6 @@ /* * Copyright (c) 2017-present Robert Jaros + * Copyright (c) 2019-present Robert Cronin * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -169,6 +170,10 @@ 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") } |