IMGUI#
This extension adds support for setup imgui StyleColor and StyleVar on demand.
Imgui settings can be specified in [[settings.exts."omni.app.setup".imgui]]
sections.
For example:
[settings.exts."omni.app.setup".imgui.color]
ScrollbarGrab = 0.4
ScrollbarGrabHovered = [0.1, 0.2, 0.3]
ScrollbarGrabActive = [0.4, 0.5, 0.6, 0.7]
[settings.exts."omni.app.setup".imgui.float]
DockSplitterSize = 2
This equals to
import carb.imgui as _imgui
imgui = _imgui.acquire_imgui()
imgui.push_style_color(_imgui.StyleColor.ScrollbarGrab, carb.Float4(0.4, 0.4, 0.4, 1))
imgui.push_style_color(_imgui.StyleColor.ScrollbarGrabHovered, carb.Float4(0.1, 0.2, 0.3, 1))
imgui.push_style_color(_imgui.StyleColor.ScrollbarGrabActive, carb.Float4(0.4, 0.5, 0.6, 0.7))
imgui.push_style_var_float(_imgui.StyleVar.DockSplitterSize, 2)