Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImGuiFilePicker: make background colors settable #567

Closed
RedImp1470 opened this issue Jul 14, 2022 · 1 comment
Closed

ImGuiFilePicker: make background colors settable #567

RedImp1470 opened this issue Jul 14, 2022 · 1 comment
Assignees
Labels
prio-should Should be implemted

Comments

@RedImp1470
Copy link
Member

RedImp1470 commented Jul 14, 2022

The popup doesn't honor the colors set via ImGui.GetStyle().Colors.
See ImGui Issue and other ImGui Issue.
A solution for ChildFrame seems to be to use:

ImGui.PushStyleColor(ImGuiCol.FrameBg, new Vector4(1, 0, 0, 1));
if (ImGui.BeginChildFrame(1, new Vector2(ImGui.GetWindowSize().X, 400)))
[...]

I couldn't find the correct line to change the Popup Background itself.
image

@RedImp1470 RedImp1470 added the prio-should Should be implemted label Jul 14, 2022
@RedImp1470 RedImp1470 changed the title ImGuiFile Picker: make background colors settable ImGuiFilePicker: make background colors settable Jul 14, 2022
@RedImp1470
Copy link
Member Author

colors[(int)ImGuiCol.ModalWindowDimBg] = Colors.ErrorPink;
Causes:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio-should Should be implemted
Projects
No open projects
Development

No branches or pull requests

2 participants