Skip to content

Fix: Apply ImGui style alpha to ImPlot colors#695

Open
lstalmir wants to merge 1 commit intoepezent:masterfrom
lstalmir:apply-imgui-style-alpha
Open

Fix: Apply ImGui style alpha to ImPlot colors#695
lstalmir wants to merge 1 commit intoepezent:masterfrom
lstalmir:apply-imgui-style-alpha

Conversation

@lstalmir
Copy link
Copy Markdown

Respect current GImGui->Style.Alpha value when getting colors, the same way ImGui does in ImGui::GetColorU32 (https://github.com/ocornut/imgui/blob/4b80d409e721b096b2b26e5edbf575178bdb48f0/imgui.cpp#L3545).

Rewrite ImAlphaU32 to multiply alphas and fix setting the alpha component in the output color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant