MCPcopy Create free account
hub / github.com/SatDump/SatDump / StyleColorsAuto

Function StyleColorsAuto

src-core/imgui/implot/implot.cpp:5745–5773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5743}
5744
5745void StyleColorsAuto(ImPlotStyle* dst) {
5746 ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle();
5747 ImVec4* colors = style->Colors;
5748
5749 style->MinorAlpha = 0.25f;
5750
5751 colors[ImPlotCol_Line] = IMPLOT_AUTO_COL;
5752 colors[ImPlotCol_Fill] = IMPLOT_AUTO_COL;
5753 colors[ImPlotCol_MarkerOutline] = IMPLOT_AUTO_COL;
5754 colors[ImPlotCol_MarkerFill] = IMPLOT_AUTO_COL;
5755 colors[ImPlotCol_ErrorBar] = IMPLOT_AUTO_COL;
5756 colors[ImPlotCol_FrameBg] = IMPLOT_AUTO_COL;
5757 colors[ImPlotCol_PlotBg] = IMPLOT_AUTO_COL;
5758 colors[ImPlotCol_PlotBorder] = IMPLOT_AUTO_COL;
5759 colors[ImPlotCol_LegendBg] = IMPLOT_AUTO_COL;
5760 colors[ImPlotCol_LegendBorder] = IMPLOT_AUTO_COL;
5761 colors[ImPlotCol_LegendText] = IMPLOT_AUTO_COL;
5762 colors[ImPlotCol_TitleText] = IMPLOT_AUTO_COL;
5763 colors[ImPlotCol_InlayText] = IMPLOT_AUTO_COL;
5764 colors[ImPlotCol_PlotBorder] = IMPLOT_AUTO_COL;
5765 colors[ImPlotCol_AxisText] = IMPLOT_AUTO_COL;
5766 colors[ImPlotCol_AxisGrid] = IMPLOT_AUTO_COL;
5767 colors[ImPlotCol_AxisTick] = IMPLOT_AUTO_COL;
5768 colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL;
5769 colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL;
5770 colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL;
5771 colors[ImPlotCol_Selection] = IMPLOT_AUTO_COL;
5772 colors[ImPlotCol_Crosshairs] = IMPLOT_AUTO_COL;
5773}
5774
5775void StyleColorsClassic(ImPlotStyle* dst) {
5776 ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle();

Callers 2

ImPlotStyleMethod · 0.85
ShowStyleSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected