MCPcopy Create free account
hub / github.com/clementgallet/libTAS / UpdateAxisColors

Function UpdateAxisColors

src/external/imgui/implot.cpp:1617–1627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1615}
1616
1617void UpdateAxisColors(ImPlotAxis& axis) {
1618 const ImVec4 col_grid = GetStyleColorVec4(ImPlotCol_AxisGrid);
1619 axis.ColorMaj = ImGui::GetColorU32(col_grid);
1620 axis.ColorMin = ImGui::GetColorU32(col_grid*ImVec4(1,1,1,GImPlot->Style.MinorAlpha));
1621 axis.ColorTick = GetStyleColorU32(ImPlotCol_AxisTick);
1622 axis.ColorTxt = GetStyleColorU32(ImPlotCol_AxisText);
1623 axis.ColorBg = GetStyleColorU32(ImPlotCol_AxisBg);
1624 axis.ColorHov = GetStyleColorU32(ImPlotCol_AxisBgHovered);
1625 axis.ColorAct = GetStyleColorU32(ImPlotCol_AxisBgActive);
1626 // axis.ColorHiLi = IM_COL32_BLACK_TRANS;
1627}
1628
1629void PadAndDatumAxesX(ImPlotPlot& plot, float& pad_T, float& pad_B, ImPlotAlignmentData* align) {
1630

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