getThemeColor

fun getThemeColor(name: String, type: String = this::class.simpleName ?: ""): Color

Return

a Color from the first matching Theme in the tree that has a Color with the specified name and type. If type is omitted the class name of the current control is used as the type.