Lua:
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
local ImVec2 = imgui.ImVec2
style.WindowPadding = ImVec2(4.0, 4.0)
style.WindowRounding = 7
style.WindowTitleAlign = ImVec2(0.5, 0.5)
style.FramePadding = ImVec2(4.0, 3.0)
style.ItemSpacing = ImVec2(8.0, 4.0)
style.ItemInnerSpacing = ImVec2(4.0, 4.0)
style.ChildWindowRounding = 7
style.FrameRounding = 7
style.ScrollbarRounding = 7
style.GrabRounding = 7
style.IndentSpacing = 21.0
style.ScrollbarSize = 13.0
style.GrabMinSize = 10.0
style.ButtonTextAlign = ImVec2(0.5, 0.5)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 1.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.96)
colors[clr.Border] = ImVec4(0.73, 0.36, 0.00, 0.00)
colors[clr.FrameBg] = ImVec4(0.49, 0.24, 0.00, 1.00)
colors[clr.FrameBgHovered] = ImVec4(0.65, 0.32, 0.00, 1.00)
colors[clr.FrameBgActive] = ImVec4(0.73, 0.36, 0.00, 1.00)
colors[clr.TitleBg] = ImVec4(0.15, 0.11, 0.09, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.73, 0.36, 0.00, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.15, 0.11, 0.09, 0.51)
colors[clr.MenuBarBg] = ImVec4(0.62, 0.31, 0.00, 1.00)
colors[clr.CheckMark] = ImVec4(1.00, 0.49, 0.00, 1.00)
colors[clr.SliderGrab] = ImVec4(0.84, 0.41, 0.00, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.98, 0.49, 0.00, 1.00)
colors[clr.Button] = ImVec4(0.73, 0.36, 0.00, 0.40)
colors[clr.ButtonHovered] = ImVec4(0.73, 0.36, 0.00, 1.00)
colors[clr.ButtonActive] = ImVec4(1.00, 0.50, 0.00, 1.00)
colors[clr.Header] = ImVec4(0.49, 0.24, 0.00, 1.00)
colors[clr.HeaderHovered] = ImVec4(0.70, 0.35, 0.01, 1.00)
colors[clr.HeaderActive] = ImVec4(1.00, 0.49, 0.00, 1.00)
colors[clr.SeparatorHovered] = ImVec4(0.49, 0.24, 0.00, 0.78)
colors[clr.SeparatorActive] = ImVec4(0.49, 0.24, 0.00, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.48, 0.23, 0.00, 1.00)
colors[clr.ResizeGripHovered] = ImVec4(0.78, 0.38, 0.00, 1.00)
colors[clr.ResizeGripActive] = ImVec4(1.00, 0.49, 0.00, 1.00)
colors[clr.PlotLines] = ImVec4(0.83, 0.41, 0.00, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.99, 0.00, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.93, 0.46, 0.00, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.26, 0.59, 0.98, 0.00)
colors[clr.ScrollbarBg] = ImVec4(0.00, 0.00, 0.00, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.33, 0.33, 0.33, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.39, 0.39, 0.39, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.48, 0.48, 0.48, 1.00)
colors[clr.CloseButton] = colors[clr.FrameBg]
colors[clr.CloseButtonHovered] = colors[clr.FrameBgHovered]
colors[clr.CloseButtonActive] = colors[clr.FrameBgActive]
end
apply_custom_style()