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

Function UpdateAxisColors

Source/3rdParty/implot/implot.cpp:1655–1665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1653}
1654
1655void UpdateAxisColors(ImPlotAxis& axis) {
1656 const ImVec4 col_grid = GetStyleColorVec4(ImPlotCol_AxisGrid);
1657 axis.ColorMaj = ImGui::GetColorU32(col_grid);
1658 axis.ColorMin = ImGui::GetColorU32(col_grid*ImVec4(1,1,1,GImPlot->Style.MinorAlpha));
1659 axis.ColorTick = GetStyleColorU32(ImPlotCol_AxisTick);
1660 axis.ColorTxt = GetStyleColorU32(ImPlotCol_AxisText);
1661 axis.ColorBg = GetStyleColorU32(ImPlotCol_AxisBg);
1662 axis.ColorHov = GetStyleColorU32(ImPlotCol_AxisBgHovered);
1663 axis.ColorAct = GetStyleColorU32(ImPlotCol_AxisBgActive);
1664 // axis.ColorHiLi = IM_COL32_BLACK_TRANS;
1665}
1666
1667void PadAndDatumAxesX(ImPlotPlot& plot, float& pad_T, float& pad_B, ImPlotAlignmentData* align) {
1668

Callers 2

SetupAxisFunction · 0.85
BeginPlotFunction · 0.85

Calls 3

GetStyleColorVec4Function · 0.85
ImVec4Class · 0.85
GetStyleColorU32Function · 0.85

Tested by

no test coverage detected