mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-29 12:05:30 +00:00
Repurpose "limit to view" icon for sections.
This commit is contained in:
@@ -274,9 +274,9 @@ RangeSlim ListSectionsMenu( const Worker& worker )
|
||||
auto& sections = worker.GetSections();
|
||||
if( sections.empty() )
|
||||
{
|
||||
TextDisabledUnformatted( "Sections" );
|
||||
TextDisabledUnformatted( ICON_FA_ARROWS_LEFT_RIGHT_TO_LINE " Sections" );
|
||||
}
|
||||
else if( ImGui::BeginMenu( "Sections" ) )
|
||||
else if( ImGui::BeginMenu( ICON_FA_ARROWS_LEFT_RIGHT_TO_LINE " Sections" ) )
|
||||
{
|
||||
if( sections.size() == 1 )
|
||||
{
|
||||
|
||||
@@ -106,7 +106,7 @@ void View::DrawOptions()
|
||||
{
|
||||
ImGui::Separator();
|
||||
val = m_vd.drawSections;
|
||||
ImGui::Checkbox( "Draw sections", &val );
|
||||
ImGui::Checkbox( ICON_FA_ARROWS_LEFT_RIGHT_TO_LINE " Draw sections", &val );
|
||||
m_vd.drawSections = val;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, int
|
||||
|
||||
if( ImGui::SmallButton( ICON_FA_MICROSCOPE " Focus" ) ) ZoomToRange( range.min, range.max );
|
||||
ImGui::SameLine();
|
||||
if( ImGui::SmallButton( ICON_FA_ARROWS_LEFT_RIGHT_TO_LINE " Limit to view" ) )
|
||||
if( ImGui::SmallButton( "Limit to view" ) )
|
||||
{
|
||||
range.min = m_vd.zvStart;
|
||||
range.max = m_vd.zvEnd;
|
||||
|
||||
Reference in New Issue
Block a user