getBackgroundColor method

dynamic getBackgroundColor(
  1. TUIThemeData theme
)

Implementation

getBackgroundColor(TUIThemeData theme) {
  if (!isSelected && !isHovered) {
    return theme.colors.surface;
  }

  if (!isSelected && !isHovered) {
    return theme.colors.surfaceHover;
  }

  if (isSelected && !isHovered) {
    return theme.colors.primaryAlt;
  }

  if (isSelected && isHovered) {
    return theme.colors.primaryAltHover;
  }
}