@@ -93,6 +93,79 @@ void OvUI::Core::UIManager::ApplyStyle(Styling::EStyle p_style)
9393
9494 style->Colors [ImGuiCol_Tab] = style->Colors [ImGuiCol_TabUnfocused];
9595 }
96+ else if (p_style == OvUI::Styling::EStyle::ALTERNATIVE_DARK)
97+ {
98+ style->WindowPadding = ImVec2 (15 , 15 );
99+ style->WindowRounding = 0 .0f ;
100+ style->FramePadding = ImVec2 (5 , 5 );
101+ style->FrameRounding = 0 .0f ;
102+ style->ItemSpacing = ImVec2 (12 , 8 );
103+ style->ItemInnerSpacing = ImVec2 (8 , 6 );
104+ style->IndentSpacing = 25 .0f ;
105+ style->ScrollbarSize = 15 .0f ;
106+ style->ScrollbarRounding = 0 .0f ;
107+ style->GrabMinSize = 5 .0f ;
108+ style->GrabRounding = 0 .0f ;
109+ style->TabRounding = 0 .0f ;
110+ style->ChildRounding = 0 .0f ;
111+ style->PopupRounding = 0 .0f ;
112+
113+ style->WindowBorderSize = 1 .0f ;
114+ style->FrameBorderSize = 0 .0f ;
115+ style->PopupBorderSize = 1 .0f ;
116+
117+ ImVec4* colors = ImGui::GetStyle ().Colors ;
118+ colors[ImGuiCol_Text] = ImVec4 (0 .96f , 0 .96f , 0 .99f , 1 .00f );
119+ colors[ImGuiCol_TextDisabled] = ImVec4 (0 .50f , 0 .50f , 0 .50f , 1 .00f );
120+ colors[ImGuiCol_WindowBg] = ImVec4 (0 .09f , 0 .09f , 0 .10f , 1 .00f );
121+ colors[ImGuiCol_ChildBg] = ImVec4 (0 .09f , 0 .09f , 0 .10f , 1 .00f );
122+ colors[ImGuiCol_PopupBg] = ImVec4 (0 .06f , 0 .06f , 0 .07f , 1 .00f );
123+ colors[ImGuiCol_Border] = ImVec4 (0 .12f , 0 .12f , 0 .14f , 1 .00f );
124+ colors[ImGuiCol_BorderShadow] = ImVec4 (0 .00f , 0 .00f , 0 .00f , 0 .00f );
125+ colors[ImGuiCol_FrameBg] = ImVec4 (0 .12f , 0 .12f , 0 .13f , 1 .00f );
126+ colors[ImGuiCol_FrameBgHovered] = ImVec4 (0 .20f , 0 .20f , 0 .22f , 1 .00f );
127+ colors[ImGuiCol_FrameBgActive] = ImVec4 (0 .27f , 0 .27f , 0 .29f , 1 .00f );
128+ colors[ImGuiCol_TitleBg] = ImVec4 (0 .07f , 0 .07f , 0 .07f , 1 .00f );
129+ colors[ImGuiCol_TitleBgActive] = ImVec4 (0 .07f , 0 .07f , 0 .07f , 1 .00f );
130+ colors[ImGuiCol_TitleBgCollapsed] = ImVec4 (0 .07f , 0 .07f , 0 .07f , 1 .00f );
131+ colors[ImGuiCol_MenuBarBg] = ImVec4 (0 .07f , 0 .07f , 0 .07f , 1 .00f );
132+ colors[ImGuiCol_ScrollbarBg] = ImVec4 (0 .07f , 0 .07f , 0 .07f , 1 .00f );
133+ colors[ImGuiCol_ScrollbarGrab] = ImVec4 (0 .31f , 0 .31f , 0 .32f , 1 .00f );
134+ colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4 (0 .41f , 0 .41f , 0 .42f , 1 .00f );
135+ colors[ImGuiCol_ScrollbarGrabActive] = ImVec4 (0 .51f , 0 .51f , 0 .53f , 1 .00f );
136+ colors[ImGuiCol_CheckMark] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 1 .00f );
137+ colors[ImGuiCol_SliderGrab] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 1 .00f );
138+ colors[ImGuiCol_SliderGrabActive] = ImVec4 (0 .59f , 0 .59f , 0 .61f , 1 .00f );
139+ colors[ImGuiCol_Button] = ImVec4 (0 .20f , 0 .20f , 0 .22f , 1 .00f );
140+ colors[ImGuiCol_ButtonHovered] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 1 .00f );
141+ colors[ImGuiCol_ButtonActive] = ImVec4 (0 .59f , 0 .59f , 0 .61f , 1 .00f );
142+ colors[ImGuiCol_Header] = ImVec4 (0 .20f , 0 .20f , 0 .22f , 1 .00f );
143+ colors[ImGuiCol_HeaderHovered] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 1 .00f );
144+ colors[ImGuiCol_HeaderActive] = ImVec4 (0 .59f , 0 .59f , 0 .61f , 1 .00f );
145+ colors[ImGuiCol_Separator] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .20f );
146+ colors[ImGuiCol_SeparatorHovered] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 0 .39f );
147+ colors[ImGuiCol_SeparatorActive] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 0 .59f );
148+ colors[ImGuiCol_ResizeGrip] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .00f );
149+ colors[ImGuiCol_ResizeGripHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .00f );
150+ colors[ImGuiCol_ResizeGripActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .00f );
151+ colors[ImGuiCol_Tab] = ImVec4 (0 .20f , 0 .20f , 0 .22f , 1 .00f );
152+ colors[ImGuiCol_TabHovered] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 1 .00f );
153+ colors[ImGuiCol_TabActive] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 1 .00f );
154+ colors[ImGuiCol_TabUnfocused] = ImVec4 (0 .20f , 0 .20f , 0 .22f , 0 .39f );
155+ colors[ImGuiCol_TabUnfocusedActive] = ImVec4 (0 .44f , 0 .44f , 0 .47f , 0 .39f );
156+ colors[ImGuiCol_DockingPreview] = ImVec4 (0 .91f , 0 .62f , 0 .00f , 0 .78f );
157+ colors[ImGuiCol_DockingEmptyBg] = ImVec4 (0 .20f , 0 .20f , 0 .20f , 1 .00f );
158+ colors[ImGuiCol_PlotLines] = ImVec4 (0 .96f , 0 .96f , 0 .99f , 1 .00f );
159+ colors[ImGuiCol_PlotLinesHovered] = ImVec4 (0 .12f , 1 .00f , 0 .12f , 1 .00f );
160+ colors[ImGuiCol_PlotHistogram] = ImVec4 (0 .96f , 0 .96f , 0 .99f , 1 .00f );
161+ colors[ImGuiCol_PlotHistogramHovered] = ImVec4 (0 .12f , 1 .00f , 0 .12f , 1 .00f );
162+ colors[ImGuiCol_TextSelectedBg] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .35f );
163+ colors[ImGuiCol_DragDropTarget] = ImVec4 (0 .91f , 0 .62f , 0 .00f , 1 .00f );
164+ colors[ImGuiCol_NavHighlight] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 1 .00f );
165+ colors[ImGuiCol_NavWindowingHighlight] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .70f );
166+ colors[ImGuiCol_NavWindowingDimBg] = ImVec4 (0 .80f , 0 .80f , 0 .80f , 0 .20f );
167+ colors[ImGuiCol_ModalWindowDimBg] = ImVec4 (0 .80f , 0 .80f , 0 .80f , 0 .35f );
168+ }
96169}
97170
98171bool OvUI::Core::UIManager::LoadFont (const std::string& p_id, const std::string & p_path, float p_fontSize)
0 commit comments