getBackgroundColor method
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;
}
}