Skip to content

Struct SYN_IMGUI_Style

ClassList > SYN_IMGUI_Style

Visual style parameters for IMGUI widgets. More...

  • #include <syn_imgui.h>

Public Attributes

Type Name
uint16_t accent
uint16_t bg
uint16_t disabled
uint16_t fg
uint16_t fg_inv
uint16_t highlight
int16_t padding
int16_t spacing

Detailed Description

Set via syn_imgui_set_style(). syn_imgui_init() loads the defaults (monochrome-friendly: white-on-black, matching the existing hardcoded colors) so existing code is unaffected.

Public Attributes Documentation

variable accent

uint16_t SYN_IMGUI_Style::accent;

Slider fill, progress bar, gauge needle


variable bg

uint16_t SYN_IMGUI_Style::bg;

Background fill for unfocused widgets


variable disabled

uint16_t SYN_IMGUI_Style::disabled;

Disabled widget color


variable fg

uint16_t SYN_IMGUI_Style::fg;

Foreground: text, outlines


variable fg_inv

uint16_t SYN_IMGUI_Style::fg_inv;

Text drawn on a highlighted background


variable highlight

uint16_t SYN_IMGUI_Style::highlight;

Focused widget fill color


variable padding

int16_t SYN_IMGUI_Style::padding;

Inner padding in pixels (default 2)


variable spacing

int16_t SYN_IMGUI_Style::spacing;

Inter-widget gap for auto-layout (default 3)



The documentation for this class was generated from the following file src/syntropic/ui/syn_imgui.h