ImGuiThemes

imgui.ImGuiThemes (Class)

Ready-to-use ImGui themes (hand-written, never regenerated).

All of it goes through the portable facade (style fields + ImGuiStyleExtra.setStyleColor), so it works identically on hxcpp, js/wasm and C#/Unity.

Static Members

applyDarkBlue(?hue: Float = 0.0, ?saturation: Float = 1.0, ?saturationAccent: Float = 1.0, ?transparency: Float = 0.95, ?borderSize: Float = 0.0): Void

Dark blue theme by Sixze (dear imgui issue #707), with adjustable hue, saturation and transparency.

Name Type Default Description
hue Float 0.0 Hue shift, [0,1] range (0 = original blue).
saturation Float 1.0 Saturation scale for backgrounds/text, [0,6] range.
saturationAccent Float 1.0 Saturation scale for accents, [0,6] range.
transparency Float 0.95 Window/child/title background opacity, [0,1].
borderSize Float 0.0 Frame/image/tab border size (0 = borderless look).

Private Members

adjust(color: ImVec4, hueShift: Float, saturationScale: Float): ImVec4

Shift hue and scale saturation of a color (HSV round-trip).

Name Type
color ImVec4
hueShift Float
saturationScale Float
Returns
ImVec4