MCPcopy Create free account
hub / github.com/brenocq/implot3d / StyleColorsAuto

Function StyleColorsAuto

implot3d.cpp:2937–2955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2935void SetStyle(const ImPlot3DStyle& style) { GImPlot3D->Style = style; }
2936
2937void StyleColorsAuto(ImPlot3DStyle* dst) {
2938 ImPlot3DStyle* style = dst ? dst : &ImPlot3D::GetStyle();
2939 ImVec4* colors = style->Colors;
2940
2941 colors[ImPlot3DCol_TitleText] = IMPLOT3D_AUTO_COL;
2942 colors[ImPlot3DCol_InlayText] = IMPLOT3D_AUTO_COL;
2943 colors[ImPlot3DCol_FrameBg] = IMPLOT3D_AUTO_COL;
2944 colors[ImPlot3DCol_PlotBg] = IMPLOT3D_AUTO_COL;
2945 colors[ImPlot3DCol_PlotBorder] = IMPLOT3D_AUTO_COL;
2946 colors[ImPlot3DCol_LegendBg] = IMPLOT3D_AUTO_COL;
2947 colors[ImPlot3DCol_LegendBorder] = IMPLOT3D_AUTO_COL;
2948 colors[ImPlot3DCol_LegendText] = IMPLOT3D_AUTO_COL;
2949 colors[ImPlot3DCol_AxisText] = IMPLOT3D_AUTO_COL;
2950 colors[ImPlot3DCol_AxisGrid] = IMPLOT3D_AUTO_COL;
2951 colors[ImPlot3DCol_AxisTick] = IMPLOT3D_AUTO_COL;
2952 colors[ImPlot3DCol_AxisBg] = IMPLOT3D_AUTO_COL;
2953 colors[ImPlot3DCol_AxisBgHovered] = IMPLOT3D_AUTO_COL;
2954 colors[ImPlot3DCol_AxisBgActive] = IMPLOT3D_AUTO_COL;
2955}
2956
2957void StyleColorsDark(ImPlot3DStyle* dst) {
2958 ImPlot3DStyle* style = dst ? dst : &ImPlot3D::GetStyle();

Callers 2

ShowStyleSelectorFunction · 0.85
ImPlot3DStyleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected