Gray ImGui theme.

This commit is contained in:
Bartosz Taudul
2019-07-27 15:02:31 +02:00
parent 2e8d20b6e8
commit 2cee59f0ba
2 changed files with 56 additions and 5 deletions

View File

@@ -433,10 +433,11 @@ bool View::DrawImpl()
const auto wrPrev = style.WindowRounding;
const auto wbsPrev = style.WindowBorderSize;
const auto wpPrev = style.WindowPadding;
const auto bgPrev = style.Colors[ImGuiCol_WindowBg];
style.WindowRounding = 0.f;
style.WindowBorderSize = 0.f;
style.WindowPadding = ImVec2( 4.f, 4.f );
style.Colors[ImGuiCol_WindowBg] = ImVec4( 0.129f, 0.137f, 0.11f, 1.f );
style.Colors[ImGuiCol_WindowBg] = ImVec4( 0.16f, 0.16f, 0.16f, 1.f );
ImGui::SetNextWindowPos( ImVec2( 0, 0 ) );
ImGui::SetNextWindowSize( ImVec2( m_rootWidth, m_rootHeight ) );
@@ -445,7 +446,7 @@ bool View::DrawImpl()
style.WindowRounding = wrPrev;
style.WindowBorderSize = wbsPrev;
style.WindowPadding = wpPrev;
style.Colors[ImGuiCol_WindowBg] = ImVec4( 0.11f, 0.11f, 0.08f, 1.f );
style.Colors[ImGuiCol_WindowBg] = bgPrev;
#else
char tmp[2048];
sprintf( tmp, "%s###Profiler", m_worker.GetCaptureName().c_str() );