INNER CODE UNIT · Kotlin
step
fjossinet/RNArtist · src/main/kotlin/RNArtist.kt:1276
val step = currentDrawing.rnArtistEl.getThemeOrNew().lastStep + 1
theme.configurations.forEach { configuration ->
when (configuration.propertyName) {
ThemeProperty.color.toString() -> {
configuration.themedElements?.first()?.getColor()
?.let { color -> //we extract the color to save in the script from the first element stored during the theming process
setColorForFull2D(
currentDrawing.rnArtistEl,
fontButton.isClicked,
color,
step
)
}
}
ThemeProperty.linewidth.toString() -> {
configuration.themedElements?.first()?.getLineWidth()