FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32
| 3605 | |
| 3606 | // FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 |
| 3607 | void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) |
| 3608 | { |
| 3609 | ImGuiContext& g = *GImGui; |
| 3610 | ImGuiColorMod backup; |
| 3611 | backup.Col = idx; |
| 3612 | backup.BackupValue = g.Style.Colors[idx]; |
| 3613 | g.ColorStack.push_back(backup); |
| 3614 | if (g.DebugFlashStyleColorIdx != idx) |
| 3615 | g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); |
| 3616 | } |
| 3617 | |
| 3618 | void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) |
| 3619 | { |