Приветствую всех! В данной теме вы можете делиться своими стилями/темами для ImGUI. Желательно вместе с кодом прикладывать скриншот того, как выглядит в игре.
Что-ж, приступим! :dance:
Что-ж, приступим! :dance:
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowRounding = 2.0
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
style.ChildWindowRounding = 2.0
style.FrameRounding = 2.0
style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
style.ScrollbarSize = 13.0
style.ScrollbarRounding = 0
style.GrabMinSize = 8.0
style.GrabRounding = 1.0
colors[clr.FrameBg] = ImVec4(0.16, 0.29, 0.48, 0.54)
colors[clr.FrameBgHovered] = ImVec4(0.26, 0.59, 0.98, 0.40)
colors[clr.FrameBgActive] = ImVec4(0.26, 0.59, 0.98, 0.67)
colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.16, 0.29, 0.48, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.CheckMark] = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.SliderGrab] = ImVec4(0.24, 0.52, 0.88, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.Button] = ImVec4(0.26, 0.59, 0.98, 0.40)
colors[clr.ButtonHovered] = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.ButtonActive] = ImVec4(0.06, 0.53, 0.98, 1.00)
colors[clr.Header] = ImVec4(0.26, 0.59, 0.98, 0.31)
colors[clr.HeaderHovered] = ImVec4(0.26, 0.59, 0.98, 0.80)
colors[clr.HeaderActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.Separator] = colors[clr.Border]
colors[clr.SeparatorHovered] = ImVec4(0.26, 0.59, 0.98, 0.78)
colors[clr.SeparatorActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.26, 0.59, 0.98, 0.25)
colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67)
colors[clr.ResizeGripActive] = ImVec4(0.26, 0.59, 0.98, 0.95)
colors[clr.TextSelectedBg] = ImVec4(0.26, 0.59, 0.98, 0.35)
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.ComboBg] = colors[clr.PopupBg]
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowRounding = 2.0
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
style.ChildWindowRounding = 2.0
style.FrameRounding = 2.0
style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
style.ScrollbarSize = 13.0
style.ScrollbarRounding = 0
style.GrabMinSize = 8.0
style.GrabRounding = 1.0
colors[clr.FrameBg] = ImVec4(0.48, 0.16, 0.16, 0.54)
colors[clr.FrameBgHovered] = ImVec4(0.98, 0.26, 0.26, 0.40)
colors[clr.FrameBgActive] = ImVec4(0.98, 0.26, 0.26, 0.67)
colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.48, 0.16, 0.16, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.CheckMark] = ImVec4(0.98, 0.26, 0.26, 1.00)
colors[clr.SliderGrab] = ImVec4(0.88, 0.26, 0.24, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.98, 0.26, 0.26, 1.00)
colors[clr.Button] = ImVec4(0.98, 0.26, 0.26, 0.40)
colors[clr.ButtonHovered] = ImVec4(0.98, 0.26, 0.26, 1.00)
colors[clr.ButtonActive] = ImVec4(0.98, 0.06, 0.06, 1.00)
colors[clr.Header] = ImVec4(0.98, 0.26, 0.26, 0.31)
colors[clr.HeaderHovered] = ImVec4(0.98, 0.26, 0.26, 0.80)
colors[clr.HeaderActive] = ImVec4(0.98, 0.26, 0.26, 1.00)
colors[clr.Separator] = colors[clr.Border]
colors[clr.SeparatorHovered] = ImVec4(0.75, 0.10, 0.10, 0.78)
colors[clr.SeparatorActive] = ImVec4(0.75, 0.10, 0.10, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.98, 0.26, 0.26, 0.25)
colors[clr.ResizeGripHovered] = ImVec4(0.98, 0.26, 0.26, 0.67)
colors[clr.ResizeGripActive] = ImVec4(0.98, 0.26, 0.26, 0.95)
colors[clr.TextSelectedBg] = ImVec4(0.98, 0.26, 0.26, 0.35)
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.ComboBg] = colors[clr.PopupBg]
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowRounding = 2.0
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
style.ChildWindowRounding = 2.0
style.FrameRounding = 2.0
style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
style.ScrollbarSize = 13.0
style.ScrollbarRounding = 0
style.GrabMinSize = 8.0
style.GrabRounding = 1.0
colors[clr.FrameBg] = ImVec4(0.48, 0.23, 0.16, 0.54)
colors[clr.FrameBgHovered] = ImVec4(0.98, 0.43, 0.26, 0.40)
colors[clr.FrameBgActive] = ImVec4(0.98, 0.43, 0.26, 0.67)
colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.48, 0.23, 0.16, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.CheckMark] = ImVec4(0.98, 0.43, 0.26, 1.00)
colors[clr.SliderGrab] = ImVec4(0.88, 0.39, 0.24, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.98, 0.43, 0.26, 1.00)
colors[clr.Button] = ImVec4(0.98, 0.43, 0.26, 0.40)
colors[clr.ButtonHovered] = ImVec4(0.98, 0.43, 0.26, 1.00)
colors[clr.ButtonActive] = ImVec4(0.98, 0.28, 0.06, 1.00)
colors[clr.Header] = ImVec4(0.98, 0.43, 0.26, 0.31)
colors[clr.HeaderHovered] = ImVec4(0.98, 0.43, 0.26, 0.80)
colors[clr.HeaderActive] = ImVec4(0.98, 0.43, 0.26, 1.00)
colors[clr.Separator] = colors[clr.Border]
colors[clr.SeparatorHovered] = ImVec4(0.75, 0.25, 0.10, 0.78)
colors[clr.SeparatorActive] = ImVec4(0.75, 0.25, 0.10, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.98, 0.43, 0.26, 0.25)
colors[clr.ResizeGripHovered] = ImVec4(0.98, 0.43, 0.26, 0.67)
colors[clr.ResizeGripActive] = ImVec4(0.98, 0.43, 0.26, 0.95)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.50, 0.35, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.98, 0.43, 0.26, 0.35)
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.ComboBg] = colors[clr.PopupBg]
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowRounding = 2.0
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
style.ChildWindowRounding = 2.0
style.FrameRounding = 2.0
style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
style.ScrollbarSize = 13.0
style.ScrollbarRounding = 0
style.GrabMinSize = 8.0
style.GrabRounding = 1.0
colors[clr.FrameBg] = ImVec4(0.16, 0.48, 0.42, 0.54)
colors[clr.FrameBgHovered] = ImVec4(0.26, 0.98, 0.85, 0.40)
colors[clr.FrameBgActive] = ImVec4(0.26, 0.98, 0.85, 0.67)
colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.16, 0.48, 0.42, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.CheckMark] = ImVec4(0.26, 0.98, 0.85, 1.00)
colors[clr.SliderGrab] = ImVec4(0.24, 0.88, 0.77, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.26, 0.98, 0.85, 1.00)
colors[clr.Button] = ImVec4(0.26, 0.98, 0.85, 0.40)
colors[clr.ButtonHovered] = ImVec4(0.26, 0.98, 0.85, 1.00)
colors[clr.ButtonActive] = ImVec4(0.06, 0.98, 0.82, 1.00)
colors[clr.Header] = ImVec4(0.26, 0.98, 0.85, 0.31)
colors[clr.HeaderHovered] = ImVec4(0.26, 0.98, 0.85, 0.80)
colors[clr.HeaderActive] = ImVec4(0.26, 0.98, 0.85, 1.00)
colors[clr.Separator] = colors[clr.Border]
colors[clr.SeparatorHovered] = ImVec4(0.10, 0.75, 0.63, 0.78)
colors[clr.SeparatorActive] = ImVec4(0.10, 0.75, 0.63, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.26, 0.98, 0.85, 0.25)
colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.98, 0.85, 0.67)
colors[clr.ResizeGripActive] = ImVec4(0.26, 0.98, 0.85, 0.95)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.81, 0.35, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.26, 0.98, 0.85, 0.35)
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.ComboBg] = colors[clr.PopupBg]
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowRounding = 2.0
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
style.ChildWindowRounding = 2.0
style.FrameRounding = 2.0
style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
style.ScrollbarSize = 13.0
style.ScrollbarRounding = 0
style.GrabMinSize = 8.0
style.GrabRounding = 1.0
colors[clr.FrameBg] = ImVec4(0.42, 0.48, 0.16, 0.54)
colors[clr.FrameBgHovered] = ImVec4(0.85, 0.98, 0.26, 0.40)
colors[clr.FrameBgActive] = ImVec4(0.85, 0.98, 0.26, 0.67)
colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.42, 0.48, 0.16, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.CheckMark] = ImVec4(0.85, 0.98, 0.26, 1.00)
colors[clr.SliderGrab] = ImVec4(0.77, 0.88, 0.24, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.85, 0.98, 0.26, 1.00)
colors[clr.Button] = ImVec4(0.85, 0.98, 0.26, 0.40)
colors[clr.ButtonHovered] = ImVec4(0.85, 0.98, 0.26, 1.00)
colors[clr.ButtonActive] = ImVec4(0.82, 0.98, 0.06, 1.00)
colors[clr.Header] = ImVec4(0.85, 0.98, 0.26, 0.31)
colors[clr.HeaderHovered] = ImVec4(0.85, 0.98, 0.26, 0.80)
colors[clr.HeaderActive] = ImVec4(0.85, 0.98, 0.26, 1.00)
colors[clr.Separator] = colors[clr.Border]
colors[clr.SeparatorHovered] = ImVec4(0.63, 0.75, 0.10, 0.78)
colors[clr.SeparatorActive] = ImVec4(0.63, 0.75, 0.10, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.85, 0.98, 0.26, 0.25)
colors[clr.ResizeGripHovered] = ImVec4(0.85, 0.98, 0.26, 0.67)
colors[clr.ResizeGripActive] = ImVec4(0.85, 0.98, 0.26, 0.95)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.81, 0.35, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.85, 0.98, 0.26, 0.35)
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.ComboBg] = colors[clr.PopupBg]
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
Ну вот еще пару тем перевел с плюсов:
Lua:imgui.SwitchContext() local style = imgui.GetStyle() local colors = style.Colors local clr = imgui.Col local ImVec4 = imgui.ImVec4 style.Alpha = 1.0 style.ChildWindowRounding = 3 style.WindowRounding = 3 style.GrabRounding = 1 style.GrabMinSize = 20 style.FrameRounding = 3 colors[clr.Text] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.TextDisabled] = ImVec4(0.00, 0.40, 0.41, 1.00) colors[clr.WindowBg] = ImVec4(0.00, 0.00, 0.00, 1.00) colors[clr.ChildWindowBg] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.Border] = ImVec4(0.00, 1.00, 1.00, 0.65) colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.FrameBg] = ImVec4(0.44, 0.80, 0.80, 0.18) colors[clr.FrameBgHovered] = ImVec4(0.44, 0.80, 0.80, 0.27) colors[clr.FrameBgActive] = ImVec4(0.44, 0.81, 0.86, 0.66) colors[clr.TitleBg] = ImVec4(0.14, 0.18, 0.21, 0.73) colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.54) colors[clr.TitleBgActive] = ImVec4(0.00, 1.00, 1.00, 0.27) colors[clr.MenuBarBg] = ImVec4(0.00, 0.00, 0.00, 0.20) colors[clr.ScrollbarBg] = ImVec4(0.22, 0.29, 0.30, 0.71) colors[clr.ScrollbarGrab] = ImVec4(0.00, 1.00, 1.00, 0.44) colors[clr.ScrollbarGrabHovered] = ImVec4(0.00, 1.00, 1.00, 0.74) colors[clr.ScrollbarGrabActive] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.ComboBg] = ImVec4(0.16, 0.24, 0.22, 0.60) colors[clr.CheckMark] = ImVec4(0.00, 1.00, 1.00, 0.68) colors[clr.SliderGrab] = ImVec4(0.00, 1.00, 1.00, 0.36) colors[clr.SliderGrabActive] = ImVec4(0.00, 1.00, 1.00, 0.76) colors[clr.Button] = ImVec4(0.00, 0.65, 0.65, 0.46) colors[clr.ButtonHovered] = ImVec4(0.01, 1.00, 1.00, 0.43) colors[clr.ButtonActive] = ImVec4(0.00, 1.00, 1.00, 0.62) colors[clr.Header] = ImVec4(0.00, 1.00, 1.00, 0.33) colors[clr.HeaderHovered] = ImVec4(0.00, 1.00, 1.00, 0.42) colors[clr.HeaderActive] = ImVec4(0.00, 1.00, 1.00, 0.54) colors[clr.ResizeGrip] = ImVec4(0.00, 1.00, 1.00, 0.54) colors[clr.ResizeGripHovered] = ImVec4(0.00, 1.00, 1.00, 0.74) colors[clr.ResizeGripActive] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.CloseButton] = ImVec4(0.00, 0.78, 0.78, 0.35) colors[clr.CloseButtonHovered] = ImVec4(0.00, 0.78, 0.78, 0.47) colors[clr.CloseButtonActive] = ImVec4(0.00, 0.78, 0.78, 1.00) colors[clr.PlotLines] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.PlotLinesHovered] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.PlotHistogram] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.PlotHistogramHovered] = ImVec4(0.00, 1.00, 1.00, 1.00) colors[clr.TextSelectedBg] = ImVec4(0.00, 1.00, 1.00, 0.22) colors[clr.ModalWindowDarkening] = ImVec4(0.04, 0.10, 0.09, 0.51)
Lua:imgui.SwitchContext() local style = imgui.GetStyle() local colors = style.Colors local clr = imgui.Col local ImVec4 = imgui.ImVec4 colors[clr.Text] = ImVec4(0.00, 0.00, 0.00, 0.51) colors[clr.TextDisabled] = ImVec4(0.24, 0.24, 0.24, 1.00) colors[clr.WindowBg] = ImVec4(1.00, 1.00, 1.00, 1.00) colors[clr.ChildWindowBg] = ImVec4(0.96, 0.96, 0.96, 1.00) colors[clr.PopupBg] = ImVec4(0.92, 0.92, 0.92, 1.00) colors[clr.Border] = ImVec4(0.86, 0.86, 0.86, 1.00) colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.FrameBg] = ImVec4(0.88, 0.88, 0.88, 1.00) colors[clr.FrameBgHovered] = ImVec4(0.82, 0.82, 0.82, 1.00) colors[clr.FrameBgActive] = ImVec4(0.76, 0.76, 0.76, 1.00) colors[clr.TitleBg] = ImVec4(0.00, 0.45, 1.00, 0.82) colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.45, 1.00, 0.82) colors[clr.TitleBgActive] = ImVec4(0.00, 0.45, 1.00, 0.82) colors[clr.MenuBarBg] = ImVec4(0.00, 0.37, 0.78, 1.00) colors[clr.ScrollbarBg] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.ScrollbarGrab] = ImVec4(0.00, 0.35, 1.00, 0.78) colors[clr.ScrollbarGrabHovered] = ImVec4(0.00, 0.33, 1.00, 0.84) colors[clr.ScrollbarGrabActive] = ImVec4(0.00, 0.31, 1.00, 0.88) colors[clr.ComboBg] = ImVec4(0.92, 0.92, 0.92, 1.00) colors[clr.CheckMark] = ImVec4(0.00, 0.49, 1.00, 0.59) colors[clr.SliderGrab] = ImVec4(0.00, 0.49, 1.00, 0.59) colors[clr.SliderGrabActive] = ImVec4(0.00, 0.39, 1.00, 0.71) colors[clr.Button] = ImVec4(0.00, 0.49, 1.00, 0.59) colors[clr.ButtonHovered] = ImVec4(0.00, 0.49, 1.00, 0.71) colors[clr.ButtonActive] = ImVec4(0.00, 0.49, 1.00, 0.78) colors[clr.Header] = ImVec4(0.00, 0.49, 1.00, 0.78) colors[clr.HeaderHovered] = ImVec4(0.00, 0.49, 1.00, 0.71) colors[clr.HeaderActive] = ImVec4(0.00, 0.49, 1.00, 0.78) colors[clr.ResizeGrip] = ImVec4(0.00, 0.39, 1.00, 0.59) colors[clr.ResizeGripHovered] = ImVec4(0.00, 0.27, 1.00, 0.59) colors[clr.ResizeGripActive] = ImVec4(0.00, 0.25, 1.00, 0.63) colors[clr.CloseButton] = ImVec4(0.00, 0.35, 0.96, 0.71) colors[clr.CloseButtonHovered] = ImVec4(0.00, 0.31, 0.88, 0.69) colors[clr.CloseButtonActive] = ImVec4(0.00, 0.25, 0.88, 0.67) colors[clr.PlotLines] = ImVec4(0.00, 0.39, 1.00, 0.75) colors[clr.PlotLinesHovered] = ImVec4(0.00, 0.39, 1.00, 0.75) colors[clr.PlotHistogram] = ImVec4(0.00, 0.39, 1.00, 0.75) colors[clr.PlotHistogramHovered] = ImVec4(0.00, 0.35, 0.92, 0.78) colors[clr.TextSelectedBg] = ImVec4(0.00, 0.47, 1.00, 0.59) colors[clr.ModalWindowDarkening] = ImVec4(0.20, 0.20, 0.20, 0.35)
Lua:imgui.SwitchContext() local style = imgui.GetStyle() local colors = style.Colors local clr = imgui.Col local ImVec4 = imgui.ImVec4 colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00) colors[clr.TextDisabled] = ImVec4(0.60, 0.60, 0.60, 1.00) colors[clr.WindowBg] = ImVec4(0.11, 0.10, 0.11, 1.00) colors[clr.ChildWindowBg] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.PopupBg] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.Border] = ImVec4(0.86, 0.86, 0.86, 1.00) colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.FrameBg] = ImVec4(0.21, 0.20, 0.21, 0.60) colors[clr.FrameBgHovered] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.FrameBgActive] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.TitleBg] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.TitleBgActive] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.MenuBarBg] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.ScrollbarBg] = ImVec4(0.00, 0.46, 0.65, 0.00) colors[clr.ScrollbarGrab] = ImVec4(0.00, 0.46, 0.65, 0.44) colors[clr.ScrollbarGrabHovered] = ImVec4(0.00, 0.46, 0.65, 0.74) colors[clr.ScrollbarGrabActive] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.ComboBg] = ImVec4(0.15, 0.14, 0.15, 1.00) colors[clr.CheckMark] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.SliderGrab] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.SliderGrabActive] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.Button] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.ButtonHovered] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.ButtonActive] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.Header] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.HeaderHovered] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.HeaderActive] = ImVec4(0.00, 0.46, 0.65, 1.00) colors[clr.ResizeGrip] = ImVec4(1.00, 1.00, 1.00, 0.30) colors[clr.ResizeGripHovered] = ImVec4(1.00, 1.00, 1.00, 0.60) colors[clr.ResizeGripActive] = ImVec4(1.00, 1.00, 1.00, 0.90) colors[clr.CloseButton] = ImVec4(1.00, 0.10, 0.24, 0.00) colors[clr.CloseButtonHovered] = ImVec4(0.00, 0.10, 0.24, 0.00) colors[clr.CloseButtonActive] = ImVec4(1.00, 0.10, 0.24, 0.00) colors[clr.PlotLines] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.PlotLinesHovered] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.PlotHistogram] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.PlotHistogramHovered] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.TextSelectedBg] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.ModalWindowDarkening] = ImVec4(0.00, 0.00, 0.00, 0.00)
Посмотреть вложение 13619Lua:function setLightStyle() -- light style from Pacôme Danhiez (user itamago) https://github.com/ocornut/imgui/pull/511#issuecomment-175719267 local style = imgui.GetStyle() local colors = style.Colors local clr = imgui.Col local ImVec4 = imgui.ImVec4 colors[clr.Text] = ImVec4(0.00, 0.00, 0.00, 1.00) colors[clr.TextDisabled] = ImVec4(0.60, 0.60, 0.60, 1.00) colors[clr.WindowBg] = ImVec4(0.94, 0.94, 0.94, 0.94) colors[clr.ChildWindowBg] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.PopupBg] = ImVec4(1.00, 1.00, 1.00, 0.94) colors[clr.Border]= ImVec4(0.00, 0.00, 0.00, 0.39) colors[clr.BorderShadow] = ImVec4(1.00, 1.00, 1.00, 0.10) colors[clr.FrameBg] = ImVec4(1.00, 1.00, 1.00, 0.94) colors[clr.FrameBgHovered]= ImVec4(0.26, 0.59, 0.98, 0.40) colors[clr.FrameBgActive] = ImVec4(0.26, 0.59, 0.98, 0.67) colors[clr.TitleBg] = ImVec4(0.96, 0.96, 0.96, 1.00) colors[clr.TitleBgCollapsed] = ImVec4(1.00, 1.00, 1.00, 0.51) colors[clr.TitleBgActive] = ImVec4(0.82, 0.82, 0.82, 1.00) colors[clr.MenuBarBg] = ImVec4(0.86, 0.86, 0.86, 1.00) colors[clr.ScrollbarBg] = ImVec4(0.98, 0.98, 0.98, 0.53) colors[clr.ScrollbarGrab] = ImVec4(0.69, 0.69, 0.69, 1.00) colors[clr.ScrollbarGrabHovered] = ImVec4(0.59, 0.59, 0.59, 1.00) colors[clr.ScrollbarGrabActive] = ImVec4(0.49, 0.49, 0.49, 1.00) colors[clr.ComboBg] = ImVec4(0.86, 0.86, 0.86, 0.99) colors[clr.CheckMark] = ImVec4(0.26, 0.59, 0.98, 1.00) colors[clr.SliderGrab] = ImVec4(0.24, 0.52, 0.88, 1.00) colors[clr.SliderGrabActive] = ImVec4(0.26, 0.59, 0.98, 1.00) colors[clr.Button]= ImVec4(0.26, 0.59, 0.98, 0.40) colors[clr.ButtonHovered] = ImVec4(0.26, 0.59, 0.98, 1.00) colors[clr.ButtonActive] = ImVec4(0.06, 0.53, 0.98, 1.00) colors[clr.Header]= ImVec4(0.26, 0.59, 0.98, 0.31) colors[clr.HeaderHovered] = ImVec4(0.26, 0.59, 0.98, 0.80) colors[clr.HeaderActive] = ImVec4(0.26, 0.59, 0.98, 1.00) colors[clr.ResizeGrip] = ImVec4(1.00, 1.00, 1.00, 0.50) colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67) colors[clr.ResizeGripActive] = ImVec4(0.26, 0.59, 0.98, 0.95) colors[clr.CloseButton] = ImVec4(0.59, 0.59, 0.59, 0.50) colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00) colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00) colors[clr.PlotLines] = ImVec4(0.39, 0.39, 0.39, 1.00) colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00) colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00) colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00) colors[clr.TextSelectedBg]= ImVec4(0.26, 0.59, 0.98, 0.35) colors[clr.ModalWindowDarkening] = ImVec4(0.20, 0.20, 0.20, 0.35) end
Посмотреть вложение 14906
Lua:local imgui = require 'imgui' 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(15, 15) style.WindowRounding = 5.0 style.FramePadding = ImVec2(5, 5) style.FrameRounding = 4.0 style.ItemSpacing = ImVec2(12, 8) style.ItemInnerSpacing = ImVec2(8, 6) style.IndentSpacing = 25.0 style.ScrollbarSize = 15.0 style.ScrollbarRounding = 9.0 style.GrabMinSize = 5.0 style.GrabRounding = 3.0 colors[clr.Text] = ImVec4(0.80, 0.80, 0.83, 1.00) colors[clr.TextDisabled] = ImVec4(0.24, 0.23, 0.29, 1.00) colors[clr.WindowBg] = ImVec4(0.06, 0.05, 0.07, 1.00) colors[clr.ChildWindowBg] = ImVec4(0.07, 0.07, 0.09, 1.00) colors[clr.PopupBg] = ImVec4(0.07, 0.07, 0.09, 1.00) colors[clr.Border] = ImVec4(0.80, 0.80, 0.83, 0.88) colors[clr.BorderShadow] = ImVec4(0.92, 0.91, 0.88, 0.00) colors[clr.FrameBg] = ImVec4(0.10, 0.09, 0.12, 1.00) colors[clr.FrameBgHovered] = ImVec4(0.24, 0.23, 0.29, 1.00) colors[clr.FrameBgActive] = ImVec4(0.56, 0.56, 0.58, 1.00) colors[clr.TitleBg] = ImVec4(0.10, 0.09, 0.12, 1.00) colors[clr.TitleBgCollapsed] = ImVec4(1.00, 0.98, 0.95, 0.75) colors[clr.TitleBgActive] = ImVec4(0.07, 0.07, 0.09, 1.00) colors[clr.MenuBarBg] = ImVec4(0.10, 0.09, 0.12, 1.00) colors[clr.ScrollbarBg] = ImVec4(0.10, 0.09, 0.12, 1.00) colors[clr.ScrollbarGrab] = ImVec4(0.80, 0.80, 0.83, 0.31) colors[clr.ScrollbarGrabHovered] = ImVec4(0.56, 0.56, 0.58, 1.00) colors[clr.ScrollbarGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00) colors[clr.ComboBg] = ImVec4(0.19, 0.18, 0.21, 1.00) colors[clr.CheckMark] = ImVec4(0.80, 0.80, 0.83, 0.31) colors[clr.SliderGrab] = ImVec4(0.80, 0.80, 0.83, 0.31) colors[clr.SliderGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00) colors[clr.Button] = ImVec4(0.10, 0.09, 0.12, 1.00) colors[clr.ButtonHovered] = ImVec4(0.24, 0.23, 0.29, 1.00) colors[clr.ButtonActive] = ImVec4(0.56, 0.56, 0.58, 1.00) colors[clr.Header] = ImVec4(0.10, 0.09, 0.12, 1.00) colors[clr.HeaderHovered] = ImVec4(0.56, 0.56, 0.58, 1.00) colors[clr.HeaderActive] = ImVec4(0.06, 0.05, 0.07, 1.00) colors[clr.ResizeGrip] = ImVec4(0.00, 0.00, 0.00, 0.00) colors[clr.ResizeGripHovered] = ImVec4(0.56, 0.56, 0.58, 1.00) colors[clr.ResizeGripActive] = ImVec4(0.06, 0.05, 0.07, 1.00) colors[clr.CloseButton] = ImVec4(0.40, 0.39, 0.38, 0.16) colors[clr.CloseButtonHovered] = ImVec4(0.40, 0.39, 0.38, 0.39) colors[clr.CloseButtonActive] = ImVec4(0.40, 0.39, 0.38, 1.00) colors[clr.PlotLines] = ImVec4(0.40, 0.39, 0.38, 0.63) colors[clr.PlotLinesHovered] = ImVec4(0.25, 1.00, 0.00, 1.00) colors[clr.PlotHistogram] = ImVec4(0.40, 0.39, 0.38, 0.63) colors[clr.PlotHistogramHovered] = ImVec4(0.25, 1.00, 0.00, 1.00) colors[clr.TextSelectedBg] = ImVec4(0.25, 1.00, 0.00, 0.43) colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73) end apply_custom_style()
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
-- StyleColorsDark
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00);
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00);
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94);
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94);
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50);
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00);
colors[clr.FrameBg] = ImVec4(0.16, 0.29, 0.48, 0.54);
colors[clr.FrameBgHovered] = ImVec4(0.26, 0.59, 0.98, 0.40);
colors[clr.FrameBgActive] = ImVec4(0.26, 0.59, 0.98, 0.67);
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51);
colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00);
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53);
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00);
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00);
colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00);
colors[clr.CheckMark] = ImVec4(0.26, 0.59, 0.98, 1.00);
colors[clr.SliderGrab] = ImVec4(0.24, 0.52, 0.88, 1.00);
colors[clr.SliderGrabActive] = ImVec4(0.26, 0.59, 0.98, 1.00);
colors[clr.Button] = ImVec4(0.26, 0.59, 0.98, 0.40);
colors[clr.ButtonHovered] = ImVec4(0.26, 0.59, 0.98, 1.00);
colors[clr.ButtonActive] = ImVec4(0.06, 0.53, 0.98, 1.00);
colors[clr.Header] = ImVec4(0.26, 0.59, 0.98, 0.31);
colors[clr.HeaderHovered] = ImVec4(0.26, 0.59, 0.98, 0.80);
colors[clr.HeaderActive] = ImVec4(0.26, 0.59, 0.98, 1.00);
colors[clr.Separator] = colors[clr.Border];
colors[clr.SeparatorHovered] = ImVec4(0.10, 0.40, 0.75, 0.78);
colors[clr.SeparatorActive] = ImVec4(0.10, 0.40, 0.75, 1.00);
colors[clr.ResizeGrip] = ImVec4(0.26, 0.59, 0.98, 0.25);
colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67);
colors[clr.ResizeGripActive] = ImVec4(0.26, 0.59, 0.98, 0.95);
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00);
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00);
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00);
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00);
colors[clr.TextSelectedBg] = ImVec4(0.26, 0.59, 0.98, 0.35);
imgui.SetColorEditOptions(imgui.ColorEditFlags.HEX)
style.FrameRounding = 0.0
style.WindowRounding = 0.0
style.ChildWindowRounding = 0.0
colors[clr.TitleBgActive] = ImVec4(0.000, 0.009, 0.120, 0.940);
colors[clr.TitleBg] = ImVec4(0.20, 0.25, 0.30, 1.0);
colors[clr.Button] = ImVec4(0.260, 0.590, 0.980, 0.670);
colors[clr.Header] = ImVec4(0.260, 0.590, 0.980, 0.670);
colors[clr.HeaderHovered] = ImVec4(0.260, 0.590, 0.980, 1.000);
colors[clr.ButtonHovered] = ImVec4(0.000, 0.545, 1.000, 1.000);
colors[clr.ButtonActive] = ImVec4(0.060, 0.416, 0.980, 1.000);
colors[clr.FrameBg] = ImVec4(0.20, 0.25, 0.30, 1.0);
colors[clr.WindowBg] = ImVec4(0.000, 0.009, 0.120, 0.940);
colors[clr.PopupBg] = ImVec4(0.076, 0.143, 0.209, 1.000);
end
ImGuiStyle& style = ImGui::GetStyle();
ImGuiIO& io = ImGui::GetIO();
// light style from Pacôme Danhiez (user itamago) https://github.com/ocornut/imgui/pull/511#issuecomment-175719267
style.Alpha = 1.0f;
style.FrameRounding = 3.0f;
style.Colors[ImGuiCol_Text] = ImVec4(1.000f, 1.000f, 1.000f, 1.000f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.000f, 0.543f, 0.983f, 1.000f);
style.Colors[ImGuiCol_WindowBg] = ImVec4(0.000f, 0.000f, 0.000f, 0.895f);
style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
style.Colors[ImGuiCol_PopupBg] = ImVec4(0.07f, 0.07f, 0.09f, 1.00f);
style.Colors[ImGuiCol_Border] = ImVec4(0.184f, 0.878f, 0.000f, 0.500f);
style.Colors[ImGuiCol_BorderShadow] = ImVec4(1.00f, 1.00f, 1.00f, 0.10f);
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.160f, 0.160f, 0.160f, 0.315f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.160f, 0.160f, 0.160f, 0.315f);
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.210f, 0.210f, 0.210f, 0.670f);
style.Colors[ImGuiCol_TitleBg] = ImVec4(0.026f, 0.597f, 0.000f, 1.000f);
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.099f, 0.315f, 0.000f, 0.000f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.026f, 0.597f, 0.000f, 1.000f);
style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f);
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.000f, 0.000f, 0.000f, 0.801f);
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.238f, 0.238f, 0.238f, 1.000f);
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.238f, 0.238f, 0.238f, 1.000f);
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.004f, 0.381f, 0.000f, 1.000f);
//style.Colors[ImGuiCol_ComboBg] = ImVec4(0.86f, 0.86f, 0.86f, 0.99f);
style.Colors[ImGuiCol_CheckMark] = ImVec4(0.009f, 0.845f, 0.000f, 1.000f);
style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.139f, 0.508f, 0.000f, 1.000f);
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.139f, 0.508f, 0.000f, 1.000f);
style.Colors[ImGuiCol_Button] = ImVec4(0.000f, 0.000f, 0.000f, 0.400f);
style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.000f, 0.619f, 0.014f, 1.000f);
style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f);
style.Colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f);
style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f);
style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);
style.Colors[ImGuiCol_Column] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f);
style.Colors[ImGuiCol_ColumnActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);
style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.000f, 1.000f, 0.221f, 0.597f);
style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);
style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);
//style.Colors[ImGuiCol_CloseButton] = ImVec4(0.59f, 0.59f, 0.59f, 0.50f);
//style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);
//style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);
style.Colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);
style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);
style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f);
style.ItemSpacing = ImVec2(10, 8); //ItemSpacing(ImVec2(7.f));
style.FramePadding = ImVec2(6, 4); //ItemSpacing(ImVec2(7.f));
style.ItemInnerSpacing = ImVec2(5, 4); //ItemSpacing(ImVec2(7.f));
style.ScrollbarSize = 16.f; //ItemSpacing(ImVec2(7.f));
style.GrabMinSize = 8.f; //ItemSpacing(ImVec2(7.f));
style.WindowBorderSize = 1.f; //ItemSpacing(ImVec2(7.f));
style.FrameBorderSize = 1.f; //ItemSpacing(ImVec2(7.f));
style.WindowRounding = 0.f; //ItemSpacing(ImVec2(7.f));
style.FrameRounding = 1.f; //ItemSpacing(ImVec2(7.f));
style.AntiAliasedLines = true;
style.AntiAliasedFill = true;
ImGuiStyle * style = &ImGui::GetStyle();
style->WindowPadding = ImVec2(15, 15);
style->WindowRounding = 5.0f;
style->FramePadding = ImVec2(5, 5);
style->FrameRounding = 4.0f;
style->ItemSpacing = ImVec2(12, 8);
style->ItemInnerSpacing = ImVec2(8, 6);
style->IndentSpacing = 25.0f;
style->ScrollbarSize = 15.0f;
style->ScrollbarRounding = 9.0f;
style->GrabMinSize = 5.0f;
style->GrabRounding = 3.0f;
style->Colors[ImGuiCol_Text] = ImVec4(0.80f, 0.80f, 0.83f, 1.00f);
style->Colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style->Colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
style->Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.07f, 0.07f, 0.09f, 1.00f);
style->Colors[ImGuiCol_PopupBg] = ImVec4(0.07f, 0.07f, 0.09f, 1.00f);
style->Colors[ImGuiCol_Border] = ImVec4(0.80f, 0.80f, 0.83f, 0.88f);
style->Colors[ImGuiCol_BorderShadow] = ImVec4(0.92f, 0.91f, 0.88f, 0.00f);
style->Colors[ImGuiCol_FrameBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
style->Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style->Colors[ImGuiCol_FrameBgActive] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_TitleBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
style->Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 0.98f, 0.95f, 0.75f);
style->Colors[ImGuiCol_TitleBgActive] = ImVec4(0.07f, 0.07f, 0.09f, 1.00f);
style->Colors[ImGuiCol_MenuBarBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
style->Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
style->Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.80f, 0.80f, 0.83f, 0.31f);
style->Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
//style->Colors[ImGuiCol_ComboBg] = ImVec4(0.19f, 0.18f, 0.21f, 1.00f);
style->Colors[ImGuiCol_CheckMark] = ImVec4(0.80f, 0.80f, 0.83f, 0.31f);
style->Colors[ImGuiCol_SliderGrab] = ImVec4(0.80f, 0.80f, 0.83f, 0.31f);
style->Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
style->Colors[ImGuiCol_Button] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
style->Colors[ImGuiCol_ButtonHovered] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style->Colors[ImGuiCol_ButtonActive] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_Header] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
style->Colors[ImGuiCol_HeaderHovered] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_HeaderActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
style->Colors[ImGuiCol_Column] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_ColumnHovered] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
style->Colors[ImGuiCol_ColumnActive] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_ResizeGrip] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
style->Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
style->Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
//style->Colors[ImGuiCol_CloseButton] = ImVec4(0.40f, 0.39f, 0.38f, 0.16f);
//style->Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.40f, 0.39f, 0.38f, 0.39f);
//style->Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.40f, 0.39f, 0.38f, 1.00f);
style->Colors[ImGuiCol_PlotLines] = ImVec4(0.40f, 0.39f, 0.38f, 0.63f);
style->Colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.25f, 1.00f, 0.00f, 1.00f);
style->Colors[ImGuiCol_PlotHistogram] = ImVec4(0.40f, 0.39f, 0.38f, 0.63f);
style->Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(0.25f, 1.00f, 0.00f, 1.00f);
style->Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.25f, 1.00f, 0.00f, 0.43f);
style->Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(1.00f, 0.98f, 0.95f, 0.73f);
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(15, 15)
style.WindowRounding = 6.0
style.FramePadding = ImVec2(5, 5)
style.FrameRounding = 4.0
style.ItemSpacing = ImVec2(12, 8)
style.ItemInnerSpacing = ImVec2(8, 6)
style.IndentSpacing = 25.0
style.ScrollbarSize = 15.0
style.ScrollbarRounding = 9.0
style.GrabMinSize = 5.0
style.GrabRounding = 3.0
colors[clr.Text] = ImVec4(0.80, 0.80, 0.83, 1.00)
colors[clr.TextDisabled] = ImVec4(0.24, 0.23, 0.29, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.07, 0.07, 0.09, 1.00)
colors[clr.PopupBg] = ImVec4(0.07, 0.07, 0.09, 1.00)
colors[clr.Border] = ImVec4(0.80, 0.80, 0.83, 0.88)
colors[clr.BorderShadow] = ImVec4(0.92, 0.91, 0.88, 0.00)
colors[clr.FrameBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.FrameBgHovered] = ImVec4(0.24, 0.23, 0.29, 1.00)
colors[clr.FrameBgActive] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.TitleBg] = ImVec4(0.76, 0.31, 0.00, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(1.00, 0.98, 0.95, 0.75)
colors[clr.TitleBgActive] = ImVec4(0.80, 0.33, 0.00, 1.00)
colors[clr.MenuBarBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.ScrollbarGrab] = ImVec4(0.80, 0.80, 0.83, 0.31)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.ComboBg] = ImVec4(0.19, 0.18, 0.21, 1.00)
colors[clr.CheckMark] = ImVec4(1.00, 0.42, 0.00, 0.53)
colors[clr.SliderGrab] = ImVec4(1.00, 0.42, 0.00, 0.53)
colors[clr.SliderGrabActive] = ImVec4(1.00, 0.42, 0.00, 1.00)
colors[clr.Button] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.ButtonHovered] = ImVec4(0.24, 0.23, 0.29, 1.00)
colors[clr.ButtonActive] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.Header] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.HeaderHovered] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.HeaderActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.ResizeGripHovered] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.ResizeGripActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.CloseButton] = ImVec4(0.40, 0.39, 0.38, 0.16)
colors[clr.CloseButtonHovered] = ImVec4(0.40, 0.39, 0.38, 0.39)
colors[clr.CloseButtonActive] = ImVec4(0.40, 0.39, 0.38, 1.00)
colors[clr.PlotLines] = ImVec4(0.40, 0.39, 0.38, 0.63)
colors[clr.PlotLinesHovered] = ImVec4(0.25, 1.00, 0.00, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.40, 0.39, 0.38, 0.63)
colors[clr.PlotHistogramHovered] = ImVec4(0.25, 1.00, 0.00, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.25, 1.00, 0.00, 0.43)
colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73)
function apply_custom_style()
--source: https://www.unknowncheats.me/forum/direct3d/189635-imgui-style-settings.html
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowPadding = imgui.ImVec2(15, 15)
style.WindowRounding = 1.5
style.FramePadding = imgui.ImVec2(5, 5)
style.FrameRounding = 4.0
style.ItemSpacing = imgui.ImVec2(12, 8)
style.ItemInnerSpacing = imgui.ImVec2(8, 6)
style.IndentSpacing = 25.0
style.ScrollbarSize = 15.0
style.ScrollbarRounding = 9.0
style.GrabMinSize = 5.0
style.GrabRounding = 3.0
colors[clr.Text] = ImVec4(0.80, 0.80, 0.83, 1.00)
colors[clr.TextDisabled] = ImVec4(0.24, 0.23, 0.29, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.07, 0.07, 0.09, 1.00)
colors[clr.PopupBg] = ImVec4(0.07, 0.07, 0.09, 1.00)
colors[clr.Border] = ImVec4(0.80, 0.80, 0.83, 0.88)
colors[clr.BorderShadow] = ImVec4(0.92, 0.91, 0.88, 0.00)
colors[clr.FrameBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.FrameBgHovered] = ImVec4(0.24, 0.23, 0.29, 1.00)
colors[clr.FrameBgActive] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.TitleBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(1.00, 0.98, 0.95, 0.75)
colors[clr.TitleBgActive] = ImVec4(0.07, 0.07, 0.09, 1.00)
colors[clr.MenuBarBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.ScrollbarGrab] = ImVec4(0.80, 0.80, 0.83, 0.31)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.ComboBg] = ImVec4(0.19, 0.18, 0.21, 1.00)
colors[clr.CheckMark] = ImVec4(0.80, 0.80, 0.83, 0.31)
colors[clr.SliderGrab] = ImVec4(0.80, 0.80, 0.83, 0.31)
colors[clr.SliderGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.Button] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.ButtonHovered] = ImVec4(0.24, 0.23, 0.29, 1.00)
colors[clr.ButtonActive] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.Header] = ImVec4(0.10, 0.09, 0.12, 1.00)
colors[clr.HeaderHovered] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.HeaderActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.ResizeGripHovered] = ImVec4(0.56, 0.56, 0.58, 1.00)
colors[clr.ResizeGripActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.CloseButton] = ImVec4(0.40, 0.39, 0.38, 0.16)
colors[clr.CloseButtonHovered] = ImVec4(0.40, 0.39, 0.38, 0.39)
colors[clr.CloseButtonActive] = ImVec4(0.40, 0.39, 0.38, 1.00)
colors[clr.PlotLines] = ImVec4(0.40, 0.39, 0.38, 0.63)
colors[clr.PlotLinesHovered] = ImVec4(0.25, 1.00, 0.00, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.40, 0.39, 0.38, 0.63)
colors[clr.PlotHistogramHovered] = ImVec4(0.25, 1.00, 0.00, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.25, 1.00, 0.00, 0.43)
colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73)
end
apply_custom_style()
function apply_custom_style()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
colors[clr.Text] = ImVec4(0.96, 0.59, 0.11, 1.00);
colors[clr.TextDisabled] = ImVec4(1.00, 0.00, 0.00, 1.00);
colors[clr.WindowBg] = ImVec4(0.10, 0.02, 0.02, 0.97);
colors[clr.ChildWindowBg] = ImVec4(0.00, 0.00, 0.00, 0.00);
colors[clr.PopupBg] = ImVec4(0.10, 0.03, 0.02, 0.90);
colors[clr.Border] = ImVec4(1.00, 0.79, 0.00, 0.40);
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00);
colors[clr.FrameBg] = ImVec4(0.40, 0.12, 0.21, 0.15);
colors[clr.FrameBgHovered] = ImVec4(0.98, 0.00, 0.00, 0.40);
colors[clr.FrameBgActive] = ImVec4(0.96, 0.64, 0.02, 0.45);
colors[clr.TitleBg] = ImVec4(1.00, 0.53, 0.00, 0.83);
colors[clr.TitleBgActive] = ImVec4(0.80, 0.30, 0.08, 0.79);
colors[clr.TitleBgCollapsed] = ImVec4(1.00, 0.00, 0.00, 0.20);
colors[clr.MenuBarBg] = ImVec4(0.79, 0.20, 0.12, 0.80);
colors[clr.ScrollbarBg] = ImVec4(0.90, 0.72, 0.07, 0.13);
colors[clr.ScrollbarGrab] = ImVec4(1.00, 0.69, 0.00, 0.30);
colors[clr.ScrollbarGrabHovered] = ImVec4(1.00, 0.00, 0.00, 0.40);
colors[clr.ScrollbarGrabActive] = ImVec4(1.00, 0.00, 0.03, 0.40);
colors[clr.ComboBg] = ImVec4(0.52, 0.07, 0.07, 0.99);
colors[clr.CheckMark] = ImVec4(0.87, 1.00, 0.00, 0.50);
colors[clr.SliderGrab] = ImVec4(1.00, 0.47, 0.00, 1.00);
colors[clr.SliderGrabActive] = ImVec4(1.00, 0.00, 0.00, 1.00);
colors[clr.Button] = ImVec4(1.00, 0.00, 0.50, 0.29);
colors[clr.ButtonHovered] = ImVec4(0.87, 0.09, 0.09, 1.00);
colors[clr.ButtonActive] = ImVec4(0.74, 0.79, 0.05, 1.00);
colors[clr.Header] = ImVec4(1.00, 0.44, 0.00, 0.45);
colors[clr.HeaderHovered] = ImVec4(0.96, 0.06, 0.26, 0.80);
colors[clr.HeaderActive] = ImVec4(1.00, 0.97, 0.00, 0.80);
colors[clr.Separator] = ImVec4(0.58, 0.09, 0.09, 1.00);
colors[clr.SeparatorHovered] = ImVec4(0.65, 0.29, 0.17, 1.00);
colors[clr.SeparatorActive] = ImVec4(0.63, 0.08, 0.10, 1.00);
colors[clr.ResizeGrip] = ImVec4(0.50, 0.07, 0.07, 0.30);
colors[clr.ResizeGripHovered] = ImVec4(0.43, 0.06, 0.06, 0.60);
colors[clr.ResizeGripActive] = ImVec4(0.32, 0.06, 0.06, 0.90);
colors[clr.CloseButton] = ImVec4(0.34, 0.08, 0.08, 0.79);
colors[clr.CloseButtonHovered] = ImVec4(0.29, 0.06, 0.06, 0.60);
colors[clr.CloseButtonActive] = ImVec4(0.23, 0.03, 0.05, 1.00);
colors[clr.PlotLines] = ImVec4(0.38, 0.15, 0.15, 1.00);
colors[clr.PlotLinesHovered] = ImVec4(0.30, 0.08, 0.13, 1.00);
colors[clr.PlotHistogram] = ImVec4(0.32, 0.06, 0.08, 1.00);
colors[clr.PlotHistogramHovered] = ImVec4(0.26, 0.06, 0.07, 1.00);
colors[clr.TextSelectedBg] = ImVec4(0.94, 0.37, 0.03, 0.35);
colors[clr.ModalWindowDarkening] = ImVec4(0.42, 0.14, 0.14, 0.35);
end
apply_custom_style()
function apply_custom_style()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
colors[clr.Text] = ImVec4(0.01, 0.36, 1.00, 1.00);
colors[clr.TextDisabled] = ImVec4(0.00, 0.60, 0.67, 0.97);
colors[clr.WindowBg] = ImVec4(0.02, 0.00, 0.06, 1.00);
colors[clr.ChildWindowBg] = ImVec4(0.09, 0.01, 0.15, 0.26);
colors[clr.PopupBg] = ImVec4(0.00, 0.00, 0.00, 1.00);
colors[clr.Border] = ImVec4(0.07, 0.10, 0.15, 0.56);
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.49);
colors[clr.FrameBg] = ImVec4(0.06, 0.19, 0.46, 0.29);
colors[clr.FrameBgHovered] = ImVec4(0.03, 0.00, 0.06, 0.22);
colors[clr.FrameBgActive] = ImVec4(0.00, 0.00, 0.00, 0.10);
colors[clr.TitleBg] = ImVec4(0.01, 0.01, 0.05, 1.00);
colors[clr.TitleBgActive] = ImVec4(0.14, 0.26, 0.55, 1.00);
colors[clr.TitleBgCollapsed] = ImVec4(0.40, 0.40, 0.90, 0.20);
colors[clr.MenuBarBg] = ImVec4(0.00, 0.00, 0.00, 0.80);
colors[clr.ScrollbarBg] = ImVec4(0.27, 0.00, 1.00, 0.19);
colors[clr.ScrollbarGrab] = ImVec4(0.00, 1.00, 0.95, 0.30);
colors[clr.ScrollbarGrabHovered] = ImVec4(0.00, 0.00, 0.00, 0.40);
colors[clr.ScrollbarGrabActive] = ImVec4(0.02, 0.98, 1.00, 0.40);
colors[clr.ComboBg] = ImVec4(0.00, 0.00, 0.00, 0.99);
colors[clr.CheckMark] = ImVec4(0.00, 0.58, 1.00, 1.00);
colors[clr.SliderGrab] = ImVec4(1.00, 1.00, 1.00, 0.30);
colors[clr.SliderGrabActive] = ImVec4(0.80, 0.50, 0.50, 1.00);
colors[clr.Button] = ImVec4(0.09, 0.06, 0.20, 1.00);
colors[clr.ButtonHovered] = ImVec4(0.08, 0.03, 0.21, 0.27);
colors[clr.ButtonActive] = ImVec4(0.00, 0.54, 1.00, 1.00);
colors[clr.Header] = ImVec4(0.35, 0.02, 1.00, 0.45);
colors[clr.HeaderHovered] = ImVec4(0.06, 0.39, 0.40, 0.80);
colors[clr.HeaderActive] = ImVec4(0.00, 0.86, 1.00, 0.80);
colors[clr.Separator] = ImVec4(0.07, 0.30, 0.52, 1.00);
colors[clr.SeparatorHovered] = ImVec4(0.00, 0.00, 0.00, 1.00);
colors[clr.SeparatorActive] = ImVec4(0.06, 0.06, 0.90, 1.00);
colors[clr.ResizeGrip] = ImVec4(0.02, 0.01, 0.27, 0.30);
colors[clr.ResizeGripHovered] = ImVec4(0.24, 0.00, 0.87, 0.60);
colors[clr.ResizeGripActive] = ImVec4(0.00, 0.00, 0.00, 0.90);
colors[clr.CloseButton] = ImVec4(0.00, 0.00, 0.00, 0.90);
colors[clr.CloseButtonHovered] = ImVec4(1.00, 0.16, 0.00, 0.26);
colors[clr.CloseButtonActive] = ImVec4(1.00, 0.05, 0.05, 1.00);
colors[clr.PlotLines] = ImVec4(0.45, 0.00, 0.73, 1.00);
colors[clr.PlotLinesHovered] = ImVec4(0.07, 0.02, 0.39, 1.00);
colors[clr.PlotHistogram] = ImVec4(0.06, 0.05, 0.12, 1.00);
colors[clr.PlotHistogramHovered] = ImVec4(0.10, 0.06, 0.27, 1.00);
colors[clr.TextSelectedBg] = ImVec4(0.17, 0.06, 0.41, 0.35);
colors[clr.ModalWindowDarkening] = ImVec4(0.28, 0.05, 0.59, 0.35);
end
apply_custom_style()
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowRounding = 2
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.5)
style.ChildWindowRounding = 2.0
style.FrameRounding = 3
style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
style.ScrollbarSize = 13.0
style.ScrollbarRounding = 0
style.GrabMinSize = 8.0
style.GrabRounding = 1.0
style.WindowPadding = imgui.ImVec2(4.0, 4.0)
style.FramePadding = imgui.ImVec2(3.5, 3.5)
style.ButtonTextAlign = imgui.ImVec2(0.0, 0.5)
colors[clr.WindowBg] = ImVec4(0.14, 0.12, 0.16, 1.00);
colors[clr.ChildWindowBg] = ImVec4(0.30, 0.20, 0.39, 0.00);
colors[clr.PopupBg] = ImVec4(0.05, 0.05, 0.10, 0.90);
colors[clr.Border] = ImVec4(0.89, 0.85, 0.92, 0.30);
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00);
colors[clr.FrameBg] = ImVec4(0.30, 0.20, 0.39, 1.00);
colors[clr.FrameBgHovered] = ImVec4(0.41, 0.19, 0.63, 0.68);
colors[clr.FrameBgActive] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.TitleBg] = ImVec4(0.41, 0.19, 0.63, 0.45);
colors[clr.TitleBgCollapsed] = ImVec4(0.41, 0.19, 0.63, 0.35);
colors[clr.TitleBgActive] = ImVec4(0.41, 0.19, 0.63, 0.78);
colors[clr.MenuBarBg] = ImVec4(0.30, 0.20, 0.39, 0.57);
colors[clr.ScrollbarBg] = ImVec4(0.30, 0.20, 0.39, 1.00);
colors[clr.ScrollbarGrab] = ImVec4(0.41, 0.19, 0.63, 0.31);
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.19, 0.63, 0.78);
colors[clr.ScrollbarGrabActive] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.ComboBg] = ImVec4(0.30, 0.20, 0.39, 1.00);
colors[clr.CheckMark] = ImVec4(0.56, 0.61, 1.00, 1.00);
colors[clr.SliderGrab] = ImVec4(0.41, 0.19, 0.63, 0.24);
colors[clr.SliderGrabActive] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.Button] = ImVec4(0.41, 0.19, 0.63, 0.44);
colors[clr.ButtonHovered] = ImVec4(0.41, 0.19, 0.63, 0.86);
colors[clr.ButtonActive] = ImVec4(0.64, 0.33, 0.94, 1.00);
colors[clr.Header] = ImVec4(0.41, 0.19, 0.63, 0.76);
colors[clr.HeaderHovered] = ImVec4(0.41, 0.19, 0.63, 0.86);
colors[clr.HeaderActive] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.ResizeGrip] = ImVec4(0.41, 0.19, 0.63, 0.20);
colors[clr.ResizeGripHovered] = ImVec4(0.41, 0.19, 0.63, 0.78);
colors[clr.ResizeGripActive] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.CloseButton] = ImVec4(1.00, 1.00, 1.00, 0.75);
colors[clr.CloseButtonHovered] = ImVec4(0.88, 0.74, 1.00, 0.59);
colors[clr.CloseButtonActive] = ImVec4(0.88, 0.85, 0.92, 1.00);
colors[clr.PlotLines] = ImVec4(0.89, 0.85, 0.92, 0.63);
colors[clr.PlotLinesHovered] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.PlotHistogram] = ImVec4(0.89, 0.85, 0.92, 0.63);
colors[clr.PlotHistogramHovered] = ImVec4(0.41, 0.19, 0.63, 1.00);
colors[clr.TextSelectedBg] = ImVec4(0.41, 0.19, 0.63, 0.43);
colors[clr.ModalWindowDarkening] = ImVec4(0.20, 0.20, 0.20, 0.35);
end
apply_custom_style()
function apply_custom_style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
style.WindowPadding = imgui.ImVec2(9, 5)
style.WindowRounding = 10
style.ChildWindowRounding = 10
style.FramePadding = imgui.ImVec2(5, 3)
style.FrameRounding = 6.0
style.ItemSpacing = imgui.ImVec2(9.0, 3.0)
style.ItemInnerSpacing = imgui.ImVec2(9.0, 3.0)
style.IndentSpacing = 21
style.ScrollbarSize = 6.0
style.ScrollbarRounding = 13
style.GrabMinSize = 17.0
style.GrabRounding = 16.0
style.WindowTitleAlign = imgui.ImVec2(0.5, 0.5)
style.ButtonTextAlign = imgui.ImVec2(0.5, 0.5)
colors[clr.Text] = ImVec4(0.90, 0.90, 0.90, 1.00)
colors[clr.TextDisabled] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.WindowBg] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.PopupBg] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.Border] = ImVec4(0.82, 0.77, 0.78, 1.00)
colors[clr.BorderShadow] = ImVec4(0.35, 0.35, 0.35, 0.66)
colors[clr.FrameBg] = ImVec4(1.00, 1.00, 1.00, 0.28)
colors[clr.FrameBgHovered] = ImVec4(0.68, 0.68, 0.68, 0.67)
colors[clr.FrameBgActive] = ImVec4(0.79, 0.73, 0.73, 0.62)
colors[clr.TitleBg] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.46, 0.46, 0.46, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.MenuBarBg] = ImVec4(0.00, 0.00, 0.00, 0.80)
colors[clr.ScrollbarBg] = ImVec4(0.00, 0.00, 0.00, 0.60)
colors[clr.ScrollbarGrab] = ImVec4(1.00, 1.00, 1.00, 0.87)
colors[clr.ScrollbarGrabHovered] = ImVec4(1.00, 1.00, 1.00, 0.79)
colors[clr.ScrollbarGrabActive] = ImVec4(0.80, 0.50, 0.50, 0.40)
colors[clr.ComboBg] = ImVec4(0.24, 0.24, 0.24, 0.99)
colors[clr.CheckMark] = ImVec4(0.99, 0.99, 0.99, 0.52)
colors[clr.SliderGrab] = ImVec4(1.00, 1.00, 1.00, 0.42)
colors[clr.SliderGrabActive] = ImVec4(0.76, 0.76, 0.76, 1.00)
colors[clr.Button] = ImVec4(0.51, 0.51, 0.51, 0.60)
colors[clr.ButtonHovered] = ImVec4(0.68, 0.68, 0.68, 1.00)
colors[clr.ButtonActive] = ImVec4(0.67, 0.67, 0.67, 1.00)
colors[clr.Header] = ImVec4(0.72, 0.72, 0.72, 0.54)
colors[clr.HeaderHovered] = ImVec4(0.92, 0.92, 0.95, 0.77)
colors[clr.HeaderActive] = ImVec4(0.82, 0.82, 0.82, 0.80)
colors[clr.Separator] = ImVec4(0.73, 0.73, 0.73, 1.00)
colors[clr.SeparatorHovered] = ImVec4(0.81, 0.81, 0.81, 1.00)
colors[clr.SeparatorActive] = ImVec4(0.74, 0.74, 0.74, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.80, 0.80, 0.80, 0.30)
colors[clr.ResizeGripHovered] = ImVec4(0.95, 0.95, 0.95, 0.60)
colors[clr.ResizeGripActive] = ImVec4(1.00, 1.00, 1.00, 0.90)
colors[clr.CloseButton] = ImVec4(0.45, 0.45, 0.45, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.70, 0.70, 0.90, 0.60)
colors[clr.CloseButtonActive] = ImVec4(0.70, 0.70, 0.70, 1.00)
colors[clr.PlotLines] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.PlotHistogram] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 1.00, 1.00, 1.00)
colors[clr.TextSelectedBg] = ImVec4(1.00, 1.00, 1.00, 0.35)
colors[clr.ModalWindowDarkening] = ImVec4(0.88, 0.88, 0.88, 0.35)
end
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(15, 15)
style.WindowRounding = 15.0
style.FramePadding = ImVec2(5, 5)
style.ItemSpacing = ImVec2(12, 8)
style.ItemInnerSpacing = ImVec2(8, 6)
style.IndentSpacing = 25.0
style.ScrollbarSize = 15.0
style.ScrollbarRounding = 15.0
style.GrabMinSize = 15.0
style.GrabRounding = 7.0
style.ChildWindowRounding = 8.0
style.FrameRounding = 6.0
colors[clr.Text] = ImVec4(0.95, 0.96, 0.98, 1.00)
colors[clr.TextDisabled] = ImVec4(0.36, 0.42, 0.47, 1.00)
colors[clr.WindowBg] = ImVec4(0.11, 0.15, 0.17, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.15, 0.18, 0.22, 1.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.FrameBg] = ImVec4(0.20, 0.25, 0.29, 1.00)
colors[clr.FrameBgHovered] = ImVec4(0.12, 0.20, 0.28, 1.00)
colors[clr.FrameBgActive] = ImVec4(0.09, 0.12, 0.14, 1.00)
colors[clr.TitleBg] = ImVec4(0.09, 0.12, 0.14, 0.65)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.TitleBgActive] = ImVec4(0.08, 0.10, 0.12, 1.00)
colors[clr.MenuBarBg] = ImVec4(0.15, 0.18, 0.22, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.39)
colors[clr.ScrollbarGrab] = ImVec4(0.20, 0.25, 0.29, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.18, 0.22, 0.25, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.09, 0.21, 0.31, 1.00)
colors[clr.ComboBg] = ImVec4(0.20, 0.25, 0.29, 1.00)
colors[clr.CheckMark] = ImVec4(0.28, 0.56, 1.00, 1.00)
colors[clr.SliderGrab] = ImVec4(0.28, 0.56, 1.00, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.37, 0.61, 1.00, 1.00)
colors[clr.Button] = ImVec4(0.20, 0.25, 0.29, 1.00)
colors[clr.ButtonHovered] = ImVec4(0.28, 0.56, 1.00, 1.00)
colors[clr.ButtonActive] = ImVec4(0.06, 0.53, 0.98, 1.00)
colors[clr.Header] = ImVec4(0.20, 0.25, 0.29, 0.55)
colors[clr.HeaderHovered] = ImVec4(0.26, 0.59, 0.98, 0.80)
colors[clr.HeaderActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.26, 0.59, 0.98, 0.25)
colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67)
colors[clr.ResizeGripActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
colors[clr.CloseButton] = ImVec4(0.40, 0.39, 0.38, 0.16)
colors[clr.CloseButtonHovered] = ImVec4(0.40, 0.39, 0.38, 0.39)
colors[clr.CloseButtonActive] = ImVec4(0.40, 0.39, 0.38, 1.00)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.25, 1.00, 0.00, 0.43)
colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73)
end
apply_custom_style()
function CherryTheme()
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(6, 4)
style.WindowRounding = 0.0
style.FramePadding = ImVec2(5, 2)
style.FrameRounding = 3.0
style.ItemSpacing = ImVec2(7, 1)
style.ItemInnerSpacing = ImVec2(1, 1)
style.TouchExtraPadding = ImVec2(0, 0)
style.IndentSpacing = 6.0
style.ScrollbarSize = 12.0
style.ScrollbarRounding = 16.0
style.GrabMinSize = 20.0
style.GrabRounding = 2.0
style.WindowTitleAlign = ImVec2(0.5, 0.5)
colors[clr.Text] = ImVec4(0.860, 0.930, 0.890, 0.78)
colors[clr.TextDisabled] = ImVec4(0.860, 0.930, 0.890, 0.28)
colors[clr.WindowBg] = ImVec4(0.13, 0.14, 0.17, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.200, 0.220, 0.270, 0.58)
colors[clr.PopupBg] = ImVec4(0.200, 0.220, 0.270, 0.9)
colors[clr.Border] = ImVec4(0.31, 0.31, 1.00, 0.00)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.FrameBg] = ImVec4(0.200, 0.220, 0.270, 1.00)
colors[clr.FrameBgHovered] = ImVec4(0.455, 0.198, 0.301, 0.78)
colors[clr.FrameBgActive] = ImVec4(0.455, 0.198, 0.301, 1.00)
colors[clr.TitleBg] = ImVec4(0.232, 0.201, 0.271, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.502, 0.075, 0.256, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.200, 0.220, 0.270, 0.75)
colors[clr.MenuBarBg] = ImVec4(0.200, 0.220, 0.270, 0.47)
colors[clr.ScrollbarBg] = ImVec4(0.200, 0.220, 0.270, 1.00)
colors[clr.ScrollbarGrab] = ImVec4(0.09, 0.15, 0.1, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.455, 0.198, 0.301, 0.78)
colors[clr.ScrollbarGrabActive] = ImVec4(0.455, 0.198, 0.301, 1.00)
colors[clr.CheckMark] = ImVec4(0.71, 0.22, 0.27, 1.00)
colors[clr.SliderGrab] = ImVec4(0.47, 0.77, 0.83, 0.14)
colors[clr.SliderGrabActive] = ImVec4(0.71, 0.22, 0.27, 1.00)
colors[clr.Button] = ImVec4(0.47, 0.77, 0.83, 0.14)
colors[clr.ButtonHovered] = ImVec4(0.455, 0.198, 0.301, 0.86)
colors[clr.ButtonActive] = ImVec4(0.455, 0.198, 0.301, 1.00)
colors[clr.Header] = ImVec4(0.455, 0.198, 0.301, 0.76)
colors[clr.HeaderHovered] = ImVec4(0.455, 0.198, 0.301, 0.86)
colors[clr.HeaderActive] = ImVec4(0.502, 0.075, 0.256, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.47, 0.77, 0.83, 0.04)
colors[clr.ResizeGripHovered] = ImVec4(0.455, 0.198, 0.301, 0.78)
colors[clr.ResizeGripActive] = ImVec4(0.455, 0.198, 0.301, 1.00)
colors[clr.PlotLines] = ImVec4(0.860, 0.930, 0.890, 0.63)
colors[clr.PlotLinesHovered] = ImVec4(0.455, 0.198, 0.301, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.860, 0.930, 0.890, 0.63)
colors[clr.PlotHistogramHovered] = ImVec4(0.455, 0.198, 0.301, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.455, 0.198, 0.301, 0.43)
colors[clr.ModalWindowDarkening] = ImVec4(0.200, 0.220, 0.270, 0.73)
end
CherryTheme()
function black_grey()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
local ImVec2 = imgui.ImVec2
style.FramePadding = ImVec2(4.0, 2.0)
style.ItemSpacing = ImVec2(8.0, 2.0)
style.WindowRounding = 1.0
style.FrameRounding = 1.0
style.ScrollbarRounding = 1.0
style.GrabRounding = 1.0
colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 0.95)
colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
colors[clr.WindowBg] = ImVec4(0.13, 0.12, 0.12, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.13, 0.12, 0.12, 1.00)
colors[clr.PopupBg] = ImVec4(0.05, 0.05, 0.05, 0.94)
colors[clr.Border] = ImVec4(0.53, 0.53, 0.53, 0.46)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.FrameBg] = ImVec4(0.00, 0.00, 0.00, 0.85)
colors[clr.FrameBgHovered] = ImVec4(0.22, 0.22, 0.22, 0.40)
colors[clr.FrameBgActive] = ImVec4(0.16, 0.16, 0.16, 0.53)
colors[clr.TitleBg] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.MenuBarBg] = ImVec4(0.12, 0.12, 0.12, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.48, 0.48, 0.48, 1.00)
colors[clr.ComboBg] = ImVec4(0.24, 0.24, 0.24, 0.99)
colors[clr.CheckMark] = ImVec4(0.79, 0.79, 0.79, 1.00)
colors[clr.SliderGrab] = ImVec4(0.48, 0.47, 0.47, 0.91)
colors[clr.SliderGrabActive] = ImVec4(0.56, 0.55, 0.55, 0.62)
colors[clr.Button] = ImVec4(0.50, 0.50, 0.50, 0.63)
colors[clr.ButtonHovered] = ImVec4(0.67, 0.67, 0.68, 0.63)
colors[clr.ButtonActive] = ImVec4(0.26, 0.26, 0.26, 0.63)
colors[clr.Header] = ImVec4(0.54, 0.54, 0.54, 0.58)
colors[clr.HeaderHovered] = ImVec4(0.64, 0.65, 0.65, 0.80)
colors[clr.HeaderActive] = ImVec4(0.25, 0.25, 0.25, 0.80)
colors[clr.Separator] = ImVec4(0.58, 0.58, 0.58, 0.50)
colors[clr.SeparatorHovered] = ImVec4(0.81, 0.81, 0.81, 0.64)
colors[clr.SeparatorActive] = ImVec4(0.81, 0.81, 0.81, 0.64)
colors[clr.ResizeGrip] = ImVec4(0.87, 0.87, 0.87, 0.53)
colors[clr.ResizeGripHovered] = ImVec4(0.87, 0.87, 0.87, 0.74)
colors[clr.ResizeGripActive] = ImVec4(0.87, 0.87, 0.87, 0.74)
colors[clr.CloseButton] = ImVec4(0.45, 0.45, 0.45, 0.50)
colors[clr.CloseButtonHovered] = ImVec4(0.70, 0.70, 0.90, 0.60)
colors[clr.CloseButtonActive] = ImVec4(0.70, 0.70, 0.70, 1.00)
colors[clr.PlotLines] = ImVec4(0.68, 0.68, 0.68, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(0.68, 0.68, 0.68, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.77, 0.33, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(0.87, 0.55, 0.08, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.47, 0.60, 0.76, 0.47)
colors[clr.ModalWindowDarkening] = ImVec4(0.88, 0.88, 0.88, 0.35)
end
black_grey()
function style()
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4
local ImVec2 = imgui.ImVec2
style.WindowRounding = 4.0
style.WindowTitleAlign = ImVec2(0.5, 0.5)
style.ChildWindowRounding = 2.0
style.FrameRounding = 2.0
style.ItemSpacing = ImVec2(10, 5)
style.ScrollbarSize = 15
style.ScrollbarRounding = 0
style.GrabMinSize = 9.6
style.GrabRounding = 1.0
style.WindowPadding = ImVec2(10, 10)
style.AntiAliasedLines = true
style.AntiAliasedShapes = true
style.FramePadding = ImVec2(5, 4)
style.DisplayWindowPadding = ImVec2(27, 27)
style.DisplaySafeAreaPadding = ImVec2(5, 5)
style.ButtonTextAlign = ImVec2(0.5, 0.5)
colors[clr.Text] = ImVec4(0.92, 0.92, 0.92, 1.00)
colors[clr.TextDisabled] = ImVec4(0.44, 0.44, 0.44, 1.00)
colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 1.00)
colors[clr.ChildWindowBg] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.ComboBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
colors[clr.Border] = ImVec4(0.51, 0.36, 0.15, 1.00)
colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.FrameBg] = ImVec4(0.11, 0.11, 0.11, 1.00)
colors[clr.FrameBgHovered] = ImVec4(0.51, 0.36, 0.15, 1.00)
colors[clr.FrameBgActive] = ImVec4(0.78, 0.55, 0.21, 1.00)
colors[clr.TitleBg] = ImVec4(0.51, 0.36, 0.15, 1.00)
colors[clr.TitleBgActive] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
colors[clr.MenuBarBg] = ImVec4(0.11, 0.11, 0.11, 1.00)
colors[clr.ScrollbarBg] = ImVec4(0.06, 0.06, 0.06, 0.53)
colors[clr.ScrollbarGrab] = ImVec4(0.21, 0.21, 0.21, 1.00)
colors[clr.ScrollbarGrabHovered] = ImVec4(0.47, 0.47, 0.47, 1.00)
colors[clr.ScrollbarGrabActive] = ImVec4(0.81, 0.83, 0.81, 1.00)
colors[clr.CheckMark] = ImVec4(0.78, 0.55, 0.21, 1.00)
colors[clr.SliderGrab] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.SliderGrabActive] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.Button] = ImVec4(0.51, 0.36, 0.15, 1.00)
colors[clr.ButtonHovered] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.ButtonActive] = ImVec4(0.78, 0.55, 0.21, 1.00)
colors[clr.Header] = ImVec4(0.51, 0.36, 0.15, 1.00)
colors[clr.HeaderHovered] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.HeaderActive] = ImVec4(0.93, 0.65, 0.14, 1.00)
colors[clr.Separator] = ImVec4(0.21, 0.21, 0.21, 1.00)
colors[clr.SeparatorHovered] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.SeparatorActive] = ImVec4(0.78, 0.55, 0.21, 1.00)
colors[clr.ResizeGrip] = ImVec4(0.21, 0.21, 0.21, 1.00)
colors[clr.ResizeGripHovered] = ImVec4(0.91, 0.64, 0.13, 1.00)
colors[clr.ResizeGripActive] = ImVec4(0.78, 0.55, 0.21, 1.00)
colors[clr.CloseButton] = ImVec4(0.47, 0.47, 0.47, 1.00)
colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.TextSelectedBg] = ImVec4(0.26, 0.59, 0.98, 0.35)
colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end