extractBgColor

fun extractBgColor(bg: Background?): Color

Безопасное извлечение цвета из Background (если его нет — Color.TRANSPARENT)