---
name: ColorRule
lang: cpp
domain: core
version: "1.0.0"
algebraic: product
definition: |
  struct ColorRule {
      int          col;
      std::string  equals;
      unsigned int color;
  };
description: "Regla de pintado condicional para tabla UI. Si cells[row][col] == equals, fondo = color (RGBA packed)."
tags: [tql, color, ui-hint, product-type]
uses_types: []
file_path: "cpp/functions/core/data_table_types.h"
---

## Notas

Solo afecta render visual. Round-trip en TQL via `columns.<name>.color_rules`. Vacio = sin color override.
