Repurpose "limit to view" icon for sections.

This commit is contained in:
Bartosz Taudul
2026-07-14 19:13:00 +02:00
parent 2e0367cd1f
commit eb53d28358
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 )
{
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;