r
04/03/2023, 4:24 PMfun randomColor(): ColorResource.Single {
return BASE_COLORS[Random.nextInt(BASE_COLORS.size)]
}
where `BASE_COLORS`is an array of ColorResource
but after upgrading moko library I cannot do that anymore and I'm not sure how to do it with the new implementation. Any ideas?alex009
04/03/2023, 5:36 PMColorDesc
interface and implementations. it's replacement for old ColorResource
. new ColorResource
is platform-based like other resourcesr
04/03/2023, 10:07 PM