Skip to content

Better Style and Color, TextComponents

Compare
Choose a tag to compare
@spaceclouds42 spaceclouds42 released this 09 Apr 00:52
· 10 commits to master since this release
dd9fa99

Can now set style with style = premadeStyleObject (as well as the same previous style { green; bold })

Colors can now be set with color = premadeTextColorObject and rgb = 0x003300. color { } no longer exists

Existing text objects can be added as components, just like strings

val someText = ekho("Some existing text object") { style { green } }
val moreText = ekho("some stuff") { newLine; someText(false) }
// the false passed in to the invocation of someText prevents style inheritance, just the same as with strings :>