баг fawesome6 с switchcontext

goosik

Участник
Автор темы
109
6
Версия MoonLoader
.027.0-preview
Здрасте! Сделал свой стиль мимгуи но после этого поплыли иконки с fawesome6, как это пофиксить?

1719174147089.png

КоDick:
function theme()
    imgui.SwitchContext()
    local style = imgui.GetStyle();
    local colors = style.Colors;
    style.Alpha = 1;
    style.WindowPadding = imgui.ImVec2(8.00, 8.00);
    style.WindowRounding = 12;
    style.WindowBorderSize = 1;
    style.WindowMinSize = imgui.ImVec2(32.00, 32.00);
    style.WindowTitleAlign = imgui.ImVec2(0.00, 0.50);
    style.ChildRounding = 12;
    style.ChildBorderSize = 1;
    style.PopupRounding = 12;
    style.PopupBorderSize = 1;
    style.FramePadding = imgui.ImVec2(20.00, 3.00);
    style.FrameRounding = 12;
    style.FrameBorderSize = 0;
    style.ItemSpacing = imgui.ImVec2(20.00, 4.00);
    style.ItemInnerSpacing = imgui.ImVec2(20.00, 4.00);
    style.IndentSpacing = 21;
    style.ScrollbarSize = 20;
    style.ScrollbarRounding = 12;
    style.GrabMinSize = 10;
    style.GrabRounding = 12;
    style.TabRounding = 12;
    style.ButtonTextAlign = imgui.ImVec2(0.50, 0.50);
    style.SelectableTextAlign = imgui.ImVec2(0.50, 0.50);
    colors[imgui.Col.Text] = imgui.ImVec4(1.00, 1.00, 1.00, 1.00);
    colors[imgui.Col.TextDisabled] = imgui.ImVec4(0.50, 0.50, 0.50, 1.00);
    colors[imgui.Col.WindowBg] = imgui.ImVec4(0.01, 0.21, 0.23, 1.00);
    colors[imgui.Col.ChildBg] = imgui.ImVec4(0.01, 0.15, 0.16, 1.00);
    colors[imgui.Col.PopupBg] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.Border] = imgui.ImVec4(0.00, 0.00, 0.00, 1.00);
    colors[imgui.Col.BorderShadow] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.FrameBg] = imgui.ImVec4(0.15, 0.27, 0.28, 1.00);
    colors[imgui.Col.FrameBgHovered] = imgui.ImVec4(0.02, 0.38, 0.41, 1.00);
    colors[imgui.Col.FrameBgActive] = imgui.ImVec4(0.01, 0.15, 0.16, 1.00);
    colors[imgui.Col.TitleBg] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.TitleBgActive] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.TitleBgCollapsed] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.MenuBarBg] = imgui.ImVec4(0.02, 0.29, 0.31, 1.00);
    colors[imgui.Col.ScrollbarBg] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.ScrollbarGrab] = imgui.ImVec4(0.31, 0.31, 0.31, 1.00);
    colors[imgui.Col.ScrollbarGrabHovered] = imgui.ImVec4(0.41, 0.41, 0.41, 1.00);
    colors[imgui.Col.ScrollbarGrabActive] = imgui.ImVec4(0.51, 0.51, 0.51, 1.00);
    colors[imgui.Col.CheckMark] = imgui.ImVec4(0.26, 0.59, 0.98, 1.00);
    colors[imgui.Col.SliderGrab] = imgui.ImVec4(0.03, 0.49, 0.52, 1.00);
    colors[imgui.Col.SliderGrabActive] = imgui.ImVec4(0.26, 0.59, 0.98, 1.00);
    colors[imgui.Col.Button] = imgui.ImVec4(0.15, 0.32, 0.33, 1.00);
    colors[imgui.Col.ButtonHovered] = imgui.ImVec4(0.26, 0.59, 0.98, 1.00);
    colors[imgui.Col.ButtonActive] = imgui.ImVec4(0.06, 0.53, 0.98, 1.00);
    colors[imgui.Col.Header] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.HeaderHovered] = imgui.ImVec4(0.26, 0.59, 0.98, 0.80);
    colors[imgui.Col.HeaderActive] = imgui.ImVec4(0.26, 0.59, 0.98, 1.00);
    colors[imgui.Col.Separator] = imgui.ImVec4(0.43, 0.43, 0.50, 0.50);
    colors[imgui.Col.SeparatorHovered] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.SeparatorActive] = imgui.ImVec4(0.10, 0.40, 0.75, 1.00);
    colors[imgui.Col.ResizeGrip] = imgui.ImVec4(0.26, 0.59, 0.98, 0.25);
    colors[imgui.Col.ResizeGripHovered] = imgui.ImVec4(0.26, 0.59, 0.98, 0.67);
    colors[imgui.Col.ResizeGripActive] = imgui.ImVec4(0.26, 0.59, 0.98, 0.95);
    colors[imgui.Col.Tab] = imgui.ImVec4(0.01, 0.21, 0.22, 1.00);
    colors[imgui.Col.TabHovered] = imgui.ImVec4(0.26, 0.59, 0.98, 0.80);
    colors[imgui.Col.TabActive] = imgui.ImVec4(0.05, 0.46, 0.50, 1.00);
    colors[imgui.Col.TabUnfocused] = imgui.ImVec4(0.07, 0.10, 0.15, 0.97);
    colors[imgui.Col.TabUnfocusedActive] = imgui.ImVec4(0.14, 0.26, 0.42, 1.00);
    colors[imgui.Col.PlotLines] = imgui.ImVec4(0.61, 0.61, 0.61, 1.00);
    colors[imgui.Col.PlotLinesHovered] = imgui.ImVec4(1.00, 0.43, 0.35, 1.00);
    colors[imgui.Col.PlotHistogram] = imgui.ImVec4(0.90, 0.70, 0.00, 1.00);
    colors[imgui.Col.PlotHistogramHovered] = imgui.ImVec4(1.00, 0.60, 0.00, 1.00);
    colors[imgui.Col.TextSelectedBg] = imgui.ImVec4(0.26, 0.59, 0.98, 0.35);
    colors[imgui.Col.DragDropTarget] = imgui.ImVec4(1.00, 1.00, 0.00, 0.90);
    colors[imgui.Col.NavHighlight] = imgui.ImVec4(0.26, 0.59, 0.98, 1.00);
    colors[imgui.Col.NavWindowingHighlight] = imgui.ImVec4(1.00, 1.00, 1.00, 0.70);
    colors[imgui.Col.NavWindowingDimBg] = imgui.ImVec4(0.80, 0.80, 0.80, 0.20);
    colors[imgui.Col.ModalWindowDimBg] = imgui.ImVec4(0.80, 0.80, 0.80, 0.35);
end