Imgui: How to customize imgui like Parsec

Created on 13 Apr 2020  Â·  6Comments  Â·  Source: ocornut/imgui

My question is simple.
How Parsec (https://parsecgaming.com/features/#features) customised imgui that much?
screenshot from imgui releases page down here \/ \/ \/

Are they changed imgui source code or done that just by using imgui styles?

style

Most helpful comment

Yes essentially, however you don't need to change the whole style (that will be too slow).
You can use PushStyleColor(), PushStyleVar() functions then restoring PopStyleColor(), PopStyleVar() to restore the change.

All 6 comments

They are mostly extra custom widget based over imgui_internal.h, i don’t see anything preventing you to do that.

Sent from my fax machine

On 13 Apr 2020, at 13:36, OverShifted notifications@github.com wrote:


My question is simple.
How Parsec (https://parsecgaming.com/features/#features) customised imgui that much?
screenshot from imgui releases page down here \/ \/ \/

Are they changed imgui source code or done that just by using imgui styles?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I couldn't find any documentation or something about that in the wiki.
Is there any tutorial/doc about custom widgets?

There’s none no, and it require some comfortable understanding of both dear imgui and programming to make your way through it.

However, if you dissect that screenshot you’ll find there aren’t that many custom widgets in there:

  • Using icons, images + varying fonts color and size can already get you half way with having a nice looking application. I reckon this is most of what you see here.

  • Pushing custom style colors on a per widget basis (to eg change text color in a button) also gives a nicer look easily.

How can I

Pushing custom style colors on a per widget basis (to eg change text color in a button) also gives a nicer look easily.

?

Like this?

Imgui::Begin("Test");
Imgui::stylesdark();
Imgui::button(....);
Imgui::styleslight();
Imgui::End();

?
will it change just button to black?

Yes essentially, however you don't need to change the whole style (that will be too slow).
You can use PushStyleColor(), PushStyleVar() functions then restoring PopStyleColor(), PopStyleVar() to restore the change.

Oh cool 😀😀
I think I can close the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spaderthomas picture spaderthomas  Â·  3Comments

Folling picture Folling  Â·  3Comments

SlNPacifist picture SlNPacifist  Â·  3Comments

mnemode2 picture mnemode2  Â·  3Comments

bogdaNNNN1 picture bogdaNNNN1  Â·  3Comments