diff --git a/Samples/Browser/include/SampleBrowser.h b/Samples/Browser/include/SampleBrowser.h index ef570497b37..2a4eb448255 100644 --- a/Samples/Browser/include/SampleBrowser.h +++ b/Samples/Browser/include/SampleBrowser.h @@ -293,6 +293,28 @@ namespace OgreBites imguiOverlay->setZOrder(300); imguiOverlay->show(); + if(mOwnsImGuiOverlay) + { + ImGui::GetStyle().FrameRounding = 8; + ImVec4* colors = ImGui::GetStyle().Colors; + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.48f, 0.2f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.98f, 0.2f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.98f, 0.2f, 0.67f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.48f, 0.2f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.98f, 0.2f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.88f, 0.2f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.98f, 0.2f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.98f, 0.2f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.98f, 0.2f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.98f, 0.2f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.98f, 0.2f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.98f, 0.2f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.98f, 0.2f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.98f, 0.2f, 0.20f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.98f, 0.2f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.98f, 0.2f, 0.95f); + } + mWindow->addListener(this); mInputListenerChain = TouchAgnosticInputListenerChain(mWindow, {this, mTrayMgr, getImGuiInputListener()});