imgui_set_style_var
Set ImGui style variables like FrameRounding, ItemSpacing, and WindowPadding by passing a value (float or [x,y] pair) to customize the visual appearance of your Dear ImGui interface in real time.
Instructions
Set an ImGui style variable. Float vars: FrameRounding, WindowRounding, IndentSpacing, ScrollbarSize, GrabMinSize, etc. Vec2 vars: FramePadding, ItemSpacing, WindowPadding, etc.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"var_name": "<var_name>",
"value": "<value>"
},
"name": "imgui_set_style_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Float value for scalar vars, or [x, y] array for vec2 vars | |
| var_name | Yes | Style variable name (e.g. 'FrameRounding', 'ItemSpacing') |