Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void InitializeTheme()
- {
- ImGuiStyle& style = ImGui::GetStyle();
- ImColor mainColor = ImColor(int(54), int(54), int(54), 255);
- ImColor bodyColor = ImColor(int(24), int(24), int(24), 255);
- ImColor fontColor = ImColor(int(255), int(255), int(255), 255);
- ImVec4 mainColorHovered = ImVec4(mainColor.Value.x + 0.1f, mainColor.Value.y + 0.1f, mainColor.Value.z + 0.1f, mainColor.Value.w);
- ImVec4 mainColorActive = ImVec4(mainColor.Value.x + 0.2f, mainColor.Value.y + 0.2f, mainColor.Value.z + 0.2f, mainColor.Value.w);
- ImVec4 menubarColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w - 0.8f);
- ImVec4 frameBgColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w + .1f);
- ImVec4 tooltipBgColor = ImVec4(bodyColor.Value.x, bodyColor.Value.y, bodyColor.Value.z, bodyColor.Value.w + .05f);
- style.Alpha = .8f;
- style.WindowPadding = ImVec2(8, 8);
- style.WindowMinSize = ImVec2(32, 32);
- style.WindowRounding = 0.0f;
- style.WindowTitleAlign = ImVec2(0.5f, 0.5f);
- style.ChildWindowRounding = 0.0f;
- style.FramePadding = ImVec2(4, 3);
- style.FrameRounding = 0;
- style.ItemSpacing = ImVec2(6, 3);
- style.ItemInnerSpacing = ImVec2(4, 4);
- style.TouchExtraPadding = ImVec2(0, 0);
- style.IndentSpacing = 21.0f;
- style.ColumnsMinSpacing = 3.0f;
- style.ScrollbarSize = 8.f;
- style.ScrollbarRounding = 0.0f;
- style.GrabMinSize = 20;
- style.GrabRounding = 16;
- style.ButtonTextAlign = ImVec2(0.5f, 0.5f);
- style.DisplayWindowPadding = ImVec2(22, 22);
- style.DisplaySafeAreaPadding = ImVec2(4, 4);
- style.AntiAliasedLines = true;
- style.AntiAliasedShapes = true;
- style.CurveTessellationTol = 1.25f;
- style.Colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
- style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_WindowBg] = ImVec4(0.109, 0.125, 0.141, 1.00f);
- style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.18f, 0.18f, 0.18f, 0.00f);
- style.Colors[ImGuiCol_PopupBg] = ImVec4(0.09f, 0.09f, 0.09f, 1.05f);
- style.Colors[ImGuiCol_Border] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.92f, 0.91f, 0.88f, 0.00f);
- style.Colors[ImGuiCol_FrameBg] = ImVec4(0.09f, 0.09f, 0.09f, 1.10f);
- style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_TitleBg] = ImVec4(0.863, 0.145, 0.322, 0.83f);
- style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 0.98f, 0.95f, 0.75f);
- style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.863, 0.145, 0.322, 0.83f);
- style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.00f, 0.09f, 0.09f, 0.20f);
- style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.10f);
- style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.77f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.48f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_ComboBg] = ImVec4(0.09f, 0.09f, 0.09f, 1.10f);
- style.Colors[ImGuiCol_CheckMark] = ImVec4(0.651, 0.157, 0.282, 1.00f);
- style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_Button] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f);
- style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f);
- style.Colors[ImGuiCol_ButtonActive] = ImVec4(1.00f, 0.21f, 0.22f, 1.00f);
- style.Colors[ImGuiCol_Header] = ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_Column] = ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_ColumnActive] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_CloseButton] = ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f);
- style.Colors[ImGuiCol_PlotLines] = ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f);
- style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
- style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(0.31f, 0.31f, 0.31f, 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);
- ImGuiIO& io = ImGui::GetIO();
- ImFont* font0 = io.Fonts->AddFontFromMemoryTTF(blocky, blocky_size, 8);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement