Skip to content

Keep window title same color [Docking] #2771

@xpenatan

Description

@xpenatan

Hi. How can I keep the my window title green when docking others windows?

tab

Using docking branch (#a4af3cc)

I'm just pushing text style to begin method but it does not work when the docking api dock another window.

What I want is to have a green "Hello World" text and a white "ImGui Demo" text when its docked. Is this possible ?

Code:

ImGui.PushStyleColor(ImGuiCol.Text, Color.GREEN.toIntBits());

ImGui.Begin("Hello World");

ImGui.PopStyleColor();

//... Other codes

ImGui.End();
- Please provide the platform/renderer back-ends (imgui_impl_XXX files) you are using along with your operating system and its version.

https://github.com/xpenatan/jDear-imgui/blob/master/extensions/gdx-imgui/src/main/java/com/github/xpenatan/imgui/gdx/ImGuiGdxImpl.java

windows 10

- If you are not calling dear imgui directly from C++, please provide information about your Language and the wrapper/binding you are using.

Made my own lib which calls C++ directly from Java.  the rendering is using libgdx opengl classes.
https://github.com/xpenatan/jDear-imgui

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions