MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / StyleColorsClassic

Function StyleColorsClassic

Source/3rdParty/implot/implot.cpp:5846–5868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5844}
5845
5846void StyleColorsClassic(ImPlotStyle* dst) {
5847 ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle();
5848 ImVec4* colors = style->Colors;
5849
5850 style->MinorAlpha = 0.5f;
5851
5852 colors[ImPlotCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f);
5853 colors[ImPlotCol_PlotBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.35f);
5854 colors[ImPlotCol_PlotBorder] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f);
5855 colors[ImPlotCol_LegendBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f);
5856 colors[ImPlotCol_LegendBorder] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f);
5857 colors[ImPlotCol_LegendText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f);
5858 colors[ImPlotCol_TitleText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f);
5859 colors[ImPlotCol_InlayText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f);
5860 colors[ImPlotCol_AxisText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f);
5861 colors[ImPlotCol_AxisGrid] = ImVec4(0.90f, 0.90f, 0.90f, 0.25f);
5862 colors[ImPlotCol_AxisTick] = IMPLOT_AUTO_COL; // TODO
5863 colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL; // TODO
5864 colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL; // TODO
5865 colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL; // TODO
5866 colors[ImPlotCol_Selection] = ImVec4(0.97f, 0.97f, 0.39f, 1.00f);
5867 colors[ImPlotCol_Crosshairs] = ImVec4(0.50f, 0.50f, 0.50f, 0.75f);
5868}
5869
5870void StyleColorsDark(ImPlotStyle* dst) {
5871 ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle();

Callers 2

ShowStyleSelectorMethod · 0.85
ShowStyleSelectorFunction · 0.85

Calls 1

ImVec4Class · 0.85

Tested by

no test coverage detected