File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -973,6 +973,7 @@ void ShowStyleEditor(ImPlot3DStyle* ref) {
973973 filter.Draw (" Filter colors" , ImGui::GetFontSize () * 16 );
974974
975975 static ImGuiColorEditFlags alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf;
976+ #if IMGUI_VERSION_NUM < 19173
976977 if (ImGui::RadioButton (" Opaque" , alpha_flags == ImGuiColorEditFlags_None))
977978 alpha_flags = ImGuiColorEditFlags_None;
978979 ImGui::SameLine ();
@@ -982,6 +983,17 @@ void ShowStyleEditor(ImPlot3DStyle* ref) {
982983 if (ImGui::RadioButton (" Both" , alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf))
983984 alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf;
984985 ImGui::SameLine ();
986+ #else
987+ if (ImGui::RadioButton (" Opaque" , alpha_flags == ImGuiColorEditFlags_AlphaOpaque))
988+ alpha_flags = ImGuiColorEditFlags_AlphaOpaque;
989+ ImGui::SameLine ();
990+ if (ImGui::RadioButton (" Alpha" , alpha_flags == ImGuiColorEditFlags_None))
991+ alpha_flags = ImGuiColorEditFlags_None;
992+ ImGui::SameLine ();
993+ if (ImGui::RadioButton (" Both" , alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf))
994+ alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf;
995+ ImGui::SameLine ();
996+ #endif
985997 HelpMarker (
986998 " In the color list:\n "
987999 " Left-click on color square to open color picker,\n "
You can’t perform that action at this time.
0 commit comments