mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Make Metrics semi-transparent when Workspace cleared
This commit is contained in:
@@ -818,9 +818,16 @@ void UserInterface::Render()
|
|||||||
if (timercontrol.Visible())
|
if (timercontrol.Visible())
|
||||||
timercontrol.Render();
|
timercontrol.Render();
|
||||||
|
|
||||||
|
// Logs
|
||||||
if (Settings::application.widget.logs)
|
if (Settings::application.widget.logs)
|
||||||
Log::ShowLogWindow(&Settings::application.widget.logs);
|
Log::ShowLogWindow(&Settings::application.widget.logs);
|
||||||
|
|
||||||
|
// stats in the corner
|
||||||
|
if (Settings::application.widget.stats)
|
||||||
|
RenderMetrics(&Settings::application.widget.stats,
|
||||||
|
&Settings::application.widget.stats_corner,
|
||||||
|
&Settings::application.widget.stats_mode);
|
||||||
|
|
||||||
if ( WorkspaceWindow::clear())
|
if ( WorkspaceWindow::clear())
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
// All other windows are simply not rendered if workspace is clear
|
// All other windows are simply not rendered if workspace is clear
|
||||||
@@ -851,12 +858,6 @@ void UserInterface::Render()
|
|||||||
if (show_view_navigator > 0)
|
if (show_view_navigator > 0)
|
||||||
target_view_navigator = RenderViewNavigator( &show_view_navigator );
|
target_view_navigator = RenderViewNavigator( &show_view_navigator );
|
||||||
|
|
||||||
// stats in the corner
|
|
||||||
if (Settings::application.widget.stats)
|
|
||||||
RenderMetrics(&Settings::application.widget.stats,
|
|
||||||
&Settings::application.widget.stats_corner,
|
|
||||||
&Settings::application.widget.stats_mode);
|
|
||||||
|
|
||||||
// all IMGUI Rendering
|
// all IMGUI Rendering
|
||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
||||||
|
|||||||
Reference in New Issue
Block a user