Class ArenaTeamStyle
Paints a UI Toolkit element in an arena team's colour.
public static class ArenaTeamStyle
- Inheritance
-
ArenaTeamStyle
- Inherited Members
Remarks
Team colours are data — authored per ArenaTemplate — not theme tokens, so they cannot come from a stylesheet and are written as inline styles, the same way runtime theme overrides are. The colour itself is the border and the text; the fill is the same colour at low alpha, so a badge stays legible over the panel's dark ground.
Methods
Apply(VisualElement, Color)
Colours a badge or chip: tinted fill, solid border and text.
public static void Apply(VisualElement element, Color teamColor)
Parameters
elementVisualElementteamColorColor
ApplyText(VisualElement, Color)
Colours text only.
public static void ApplyText(VisualElement element, Color teamColor)
Parameters
elementVisualElementteamColorColor