@@ -101,17 +101,26 @@ void Game::initGuiTheme() {
101101 ImGuiStyle* style = &ImGui::GetStyle ();
102102 style->FramePadding = ImVec2 (8 .f , 8 .f );
103103
104- // style->Colors[ImGuiCol_Text] = ImColor(78, 95, 131, 255);
105- // style->Colors[ImGuiCol_WindowBg] = ImColor(246, 229, 245, 255);
106-
107- // style->Colors[ImGuiCol_FrameBg] = ImColor(251, 244, 249, 255);
108- // style->Colors[ImGuiCol_PopupBg] = ImColor(251, 244, 249, 255);
109- // style->Colors[ImGuiCol_Button] = ImColor(251, 244, 249, 255);
110- // style->Colors[ImGuiCol_ButtonHovered] =
111- // style->Colors[ImGuiCol_FrameBgHovered];
112- // style->Colors[ImGuiCol_ButtonActive] =
113- // style->Colors[ImGuiCol_FrameBgActive]; style->Colors[ImGuiCol_SliderGrab] =
114- // ImColor(78, 95, 131, 255);
104+ // dark theme colors
105+ auto & colors = ImGui::GetStyle ().Colors ;
106+
107+ colors[ImGuiCol_WindowBg] = ImVec4 (0 .1f , 0 .105f , 0 .11f , 1 .0f );
108+
109+ colors[ImGuiCol_Button] = ImVec4 (0 .2f , 0 .205f , 0 .21f , 1 .0f );
110+ colors[ImGuiCol_ButtonHovered] = ImVec4 (0 .3f , 0 .305f , 0 .31f , 1 .0f );
111+ colors[ImGuiCol_ButtonActive] = ImVec4 (0 .15f , 0 .1505f , 0 .151f , 1 .0f );
112+
113+ colors[ImGuiCol_HeaderHovered] = ImVec4 (0 .3f , 0 .305f , 0 .31f , 1 .0f );
114+ colors[ImGuiCol_Header] = ImVec4 (0 .15f , 0 .1505f , 0 .151f , 1 .0f );
115+
116+ colors[ImGuiCol_FrameBg] = ImVec4 (0 .2f , 0 .205f , 0 .21f , 1 .0f );
117+ colors[ImGuiCol_FrameBgHovered] = ImVec4 (0 .3f , 0 .305f , 0 .31f , 1 .0f );
118+ colors[ImGuiCol_FrameBgActive] = ImVec4 (0 .15f , 0 .1505f , 0 .151f , 1 .0f );
119+
120+ colors[ImGuiCol_PopupBg] = ImVec4 (0 .2f , 0 .205f , 0 .21f , 1 .0f );
121+
122+ colors[ImGuiCol_SliderGrab] = colors[ImGuiCol_Text];
123+ colors[ImGuiCol_SliderGrabActive] = colors[ImGuiCol_Text];
115124}
116125
117126void Game::setPlanner (const int id) {
0 commit comments