| 4874 | } |
| 4875 | |
| 4876 | bool ShowStyleSelector(const char* label) |
| 4877 | { |
| 4878 | static int style_idx = -1; |
| 4879 | if (ImGui::Combo(label, &style_idx, "Auto\0Classic\0Dark\0Light\0")) |
| 4880 | { |
| 4881 | switch (style_idx) |
| 4882 | { |
| 4883 | case 0: StyleColorsAuto(); break; |
| 4884 | case 1: StyleColorsClassic(); break; |
| 4885 | case 2: StyleColorsDark(); break; |
| 4886 | case 3: StyleColorsLight(); break; |
| 4887 | } |
| 4888 | return true; |
| 4889 | } |
| 4890 | return false; |
| 4891 | } |
| 4892 | |
| 4893 | bool ShowColormapSelector(const char* label) { |
| 4894 | ImPlotContext& gp = *GImPlot; |
no test coverage detected