pkdawson / imgui-godot

Dear ImGui plugin for Godot 4
MIT License
423 stars 24 forks source link

How do I get rid of menubar border? #46

Closed Shadowblitz16 closed 11 months ago

Shadowblitz16 commented 11 months ago

How do I get rid of menubar border? I tried pushing some style vars and colors and it doesn't disappear;

image

pkdawson commented 11 months ago

This is a question about general ImGui usage, which I have no special expertise or knowledge about.

But I think you want:

ImGui.PushStyleVar(ImGuiStyleVar.WindowBorderSize, 0);
if (ImGui.BeginMainMenuBar())
{
    // ...
}
ImGui.PopStyleVar();