Skip to content

Commit f81bec9

Browse files
Make loader green
1 parent 8a27f75 commit f81bec9

File tree

1 file changed

+3
-1
lines changed
  • sample/src/main/kotlin/com/example

1 file changed

+3
-1
lines changed

sample/src/main/kotlin/com/example/App.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import com.github.dylanwatsonsoftware.bobatea.KeyCodes.UP
1313
import com.github.dylanwatsonsoftware.bobatea.Boba.Companion.clear
1414
import com.github.dylanwatsonsoftware.bobatea.Boba.Companion.getChar
1515
import com.github.dylanwatsonsoftware.bobatea.Boba.Companion.nonBlockingTerminal
16+
import com.github.dylanwatsonsoftware.bobatea.LoaderStyle
17+
import com.github.dylanwatsonsoftware.bobatea.LoaderStyle.SMALL_GREEN
1618
import com.github.dylanwatsonsoftware.bobatea.LoadingIndicator.Companion.runLoading
1719

1820

@@ -21,7 +23,7 @@ class App {
2123
@JvmStatic
2224
fun main(args: Array<String>) {
2325

24-
runLoading("Loading yo!") {
26+
runLoading("Loading yo!", SMALL_GREEN) {
2527
Thread.sleep(10000)
2628
}
2729
nonBlockingTerminal {

0 commit comments

Comments
 (0)