# Approved hard-coded colour literals for tools/check_color_literals.py.
#
# New UI colours must use ThemeManager tokens (ui::theme().text_primary, .warning,
# .error, .success, .accent, .critical, ...) via src/ui/theme/theme_imgui.hpp.
# Only add an entry here when the colour is genuinely theme-independent, and say why.
#
# Format:  path                    -> whole file
#          path: <source line>     -> that line only (compared after stripping whitespace)
# Pure black (r = g = b = 0, any alpha: transparency, drop shadows) is never flagged.

# --- Theme definitions and glass effect recipes (the theme itself) ---
src/ui/theme/glass_draw.hpp

# --- Animation curve editor: self-contained dark editing canvas whose text, grid and
#     handles are all drawn on its own fixed dark background, so it stays readable in
#     every theme. Theming the canvas is a separate design task.
src/ui/animation/animation_curve_editor.cpp

# --- 3D scene preview: entity / XYZ-axis / grid colours are drawn on the scene's own
#     configurable background (SceneViewport::background_rgba_), not on UI chrome.
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(255, 220, 90, 255);
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(80, 200, 255, 255);
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(255, 140, 80, 255);
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(150, 235, 120, 255);
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(210, 210, 210, 255);
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(120, 120, 120, 255);
src/adapters/ros2/ui/scene_viewport.cpp: return IM_COL32(180, 180, 255, 255);
src/adapters/ros2/ui/scene_viewport.cpp: IM_COL32(170, 170, 170, 255),
src/adapters/ros2/ui/scene_viewport.cpp: draw_list->AddLine(axis_origin, axis_x, IM_COL32(235, 90, 90, 220), 2.0f);
src/adapters/ros2/ui/scene_viewport.cpp: draw_list->AddLine(axis_origin, axis_y, IM_COL32(90, 220, 120, 220), 2.0f);
src/adapters/ros2/ui/scene_viewport.cpp: draw_list->AddLine(axis_origin, axis_z, IM_COL32(100, 150, 255, 220), 2.0f);
src/adapters/ros2/ui/scene_viewport.cpp: ImU32 grid_color = IM_COL32(120, 120, 120, 100);

# --- Colour-swatch transparency checkerboard and toggle knob (fixed by convention) ---
src/ui/imgui/widgets.cpp: ImU32 ch_a = ImGui::ColorConvertFloat4ToU32(ImVec4(0.4f, 0.4f, 0.4f, 1.0f));
src/ui/imgui/widgets.cpp: ImU32 ch_b = ImGui::ColorConvertFloat4ToU32(ImVec4(0.6f, 0.6f, 0.6f, 1.0f));
src/ui/imgui/widgets.cpp: ImGui::ColorConvertFloat4ToU32(ImVec4(1, 1, 1, 1)));

# --- Decorative, low-alpha effects (glass sheen, glow) that carry no information ---
src/ui/overlay/tooltip.cpp: ImGui::ColorConvertFloat4ToU32(ImVec4(1.0f, 1.0f, 1.0f, 0.18f * opacity_)));
src/ui/input/box_zoom_overlay.cpp: IM_COL32(255, 255, 255, static_cast<int>(alpha * 12.0f)),
src/ui/input/box_zoom_overlay.cpp: IM_COL32(255, 255, 255, 0),
src/ui/input/box_zoom_overlay.cpp: IM_COL32(255, 255, 255, 0));
src/ui/imgui/imgui_command_bar.cpp: IM_COL32(150, 60, 140, 0),
src/ui/imgui/imgui_command_bar.cpp: IM_COL32(170, 60, 150, gv_a),
src/ui/imgui/imgui_command_bar.cpp: IM_COL32(150, 60, 140, 0));
src/ui/imgui/imgui_command_bar.cpp: const ImU32 vio    = IM_COL32(175, 105, 195, std::clamp(viol_a, 0, 255));
src/ui/imgui/imgui_command_bar.cpp: const ImU32 vio0   = IM_COL32(165, 95, 180, 0);

# --- Neutral mid-grey (50%) with variable alpha: equally visible on light and dark ---
src/ui/imgui/imgui_preview.cpp: dl->AddLine(ImVec2(px, gy), ImVec2(px + pw, gy), IM_COL32(128, 128, 128, ga), 1.0f);
src/ui/imgui/imgui_preview.cpp: dl->AddLine(ImVec2(gx, py), ImVec2(gx, py + ph), IM_COL32(128, 128, 128, ga), 1.0f);
src/ui/commands/command_palette.cpp: IM_COL32(128, 128, 128, track_alpha),
