From 2f139f8a99d6af2f5dc105611a02ccc602a7b7df Mon Sep 17 00:00:00 2001 From: epezent Date: Mon, 24 Aug 2020 11:06:43 -0500 Subject: [PATCH] add StyleColorsX --- implot.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/implot.cpp b/implot.cpp index d35097f..b4cfee1 100644 --- a/implot.cpp +++ b/implot.cpp @@ -1285,7 +1285,7 @@ inline void ShowAxisContextMenu(ImPlotAxisState& state) { bool ticks = ImHasFlag(state.Axis->Flags, ImPlotAxisFlags_TickMarks); bool labels = ImHasFlag(state.Axis->Flags, ImPlotAxisFlags_TickLabels); double drag_speed = (state.Axis->Range.Size() <= DBL_EPSILON) ? DBL_EPSILON * 1.0e+13 : 0.01 * state.Axis->Range.Size(); // recover from almost equal axis limits. - + BeginDisabledControls(total_lock); if (ImGui::Checkbox("##LockMin", &state.LockMin)) ImFlipFlag(state.Axis->Flags, ImPlotAxisFlags_LockMin); @@ -2576,7 +2576,7 @@ void StyleColorsAuto(ImPlotStyle* dst) { ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); ImVec4* colors = style->Colors; - style->MinorAlpha = 0.25f; + style->MinorAlpha = 0.25f; colors[ImPlotCol_Line] = IMPLOT_COL_AUTO; colors[ImPlotCol_Fill] = IMPLOT_COL_AUTO; @@ -2609,7 +2609,7 @@ void StyleColorsClassic(ImPlotStyle* dst) { ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); ImVec4* colors = style->Colors; - style->MinorAlpha = 0.5f; + style->MinorAlpha = 0.5f; colors[ImPlotCol_Line] = IMPLOT_COL_AUTO; colors[ImPlotCol_Fill] = IMPLOT_COL_AUTO; @@ -2641,7 +2641,7 @@ void StyleColorsDark(ImPlotStyle* dst) { ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); ImVec4* colors = style->Colors; - style->MinorAlpha = 0.25f; + style->MinorAlpha = 0.25f; colors[ImPlotCol_Line] = IMPLOT_COL_AUTO; colors[ImPlotCol_Fill] = IMPLOT_COL_AUTO; @@ -2673,8 +2673,8 @@ void StyleColorsLight(ImPlotStyle* dst) { ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); ImVec4* colors = style->Colors; - style->MinorAlpha = 1.0f; - + style->MinorAlpha = 1.0f; + colors[ImPlotCol_Line] = IMPLOT_COL_AUTO; colors[ImPlotCol_Fill] = IMPLOT_COL_AUTO; colors[ImPlotCol_MarkerOutline] = IMPLOT_COL_AUTO;