Color sets the foreground color. Accepts a plain color.Color (fixed) or a semantic color constant (g.Primary, g.Accent, etc.) which resolves against the active theme at render time.
(c any)
| 194 | // or a semantic color constant (g.Primary, g.Accent, etc.) which resolves |
| 195 | // against the active theme at render time. |
| 196 | func (n *viewNode) Color(c any) *viewNode { |
| 197 | n.modifier.color = c |
| 198 | return n |
| 199 | } |
| 200 | |
| 201 | func (n *viewNode) Background(c any) *viewNode { |
| 202 | n.modifier.background = c |