Skip to content

Commit

Permalink
Samples: Browser - style ImGui ConfigDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 25, 2024
1 parent c3f587d commit 0a97029
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Samples/Browser/include/SampleBrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()});

Expand Down

0 comments on commit 0a97029

Please sign in to comment.