mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Add close button to loaded traces (not the window close one).
This commit is contained in:
parent
f0b6c5b447
commit
9416f5bb49
@ -525,8 +525,16 @@ bool View::DrawImpl()
|
|||||||
if( !m_worker.IsDataStatic() )
|
if( !m_worker.IsDataStatic() )
|
||||||
{
|
{
|
||||||
if( ImGui::Button( m_pause ? MainWindowButtons[0] : MainWindowButtons[1], ImVec2( bw, 0 ) ) ) m_pause = !m_pause;
|
if( ImGui::Button( m_pause ? MainWindowButtons[0] : MainWindowButtons[1], ImVec2( bw, 0 ) ) ) m_pause = !m_pause;
|
||||||
ImGui::SameLine();
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::PushStyleColor( ImGuiCol_Button, (ImVec4)ImColor::HSV( 0.f, 0.6f, 0.6f) );
|
||||||
|
ImGui::PushStyleColor( ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV( 0.f, 0.7f, 0.7f) );
|
||||||
|
ImGui::PushStyleColor( ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV( 0.f, 0.8f, 0.8f) );
|
||||||
|
if( ImGui::Button( "Close" ) ) keepOpen = false;
|
||||||
|
ImGui::PopStyleColor( 3 );
|
||||||
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
if( ImGui::Button( "Options" ) ) m_showOptions = true;
|
if( ImGui::Button( "Options" ) ) m_showOptions = true;
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if( ImGui::Button( "Messages" ) ) m_showMessages = true;
|
if( ImGui::Button( "Messages" ) ) m_showMessages = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user