| 4456 | } |
| 4457 | |
| 4458 | void PushStyleColor(ImPlotCol idx, ImU32 col) { |
| 4459 | ImPlotContext& gp = *GImPlot; |
| 4460 | ImGuiColorMod backup; |
| 4461 | backup.Col = (ImGuiCol)idx; |
| 4462 | backup.BackupValue = gp.Style.Colors[idx]; |
| 4463 | gp.ColorModifiers.push_back(backup); |
| 4464 | gp.Style.Colors[idx] = ImGui::ColorConvertU32ToFloat4(col); |
| 4465 | } |
| 4466 | |
| 4467 | void PushStyleColor(ImPlotCol idx, const ImVec4& col) { |
| 4468 | ImPlotContext& gp = *GImPlot; |
no test coverage detected