BUILD130 — 4 цвета + HEX/RGB ввод
This commit is contained in:
@@ -886,7 +886,7 @@ class MappingDataService:
|
||||
)
|
||||
result: list[dict[str, Any]] = []
|
||||
|
||||
# BUILD129: operator-managed team colours. Enabled is deliberately a
|
||||
# BUILD130: operator-managed team colours. Enabled is deliberately a
|
||||
# separate value from the HEX string so a colour may remain configured
|
||||
# while being disabled for the current graphics logic.
|
||||
for side, team, side_label in (("home", home_team, "Хозяева"), ("away", away_team, "Гости")):
|
||||
@@ -894,6 +894,7 @@ class MappingDataService:
|
||||
(1, "color_hex", "color_enabled"),
|
||||
(2, "color_2_hex", "color_2_enabled"),
|
||||
(3, "color_3_hex", "color_3_enabled"),
|
||||
(4, "color_4_hex", "color_4_enabled"),
|
||||
)
|
||||
for index, color_field, enabled_field in color_specs:
|
||||
raw_color = str(getattr(team, color_field, "") or "") if team is not None else ""
|
||||
|
||||
Reference in New Issue
Block a user