From f7f95e28ae75d29f582b1926796f55bd67109ffc Mon Sep 17 00:00:00 2001 From: GigabiteStudios Date: Fri, 19 Jun 2026 00:32:21 -0500 Subject: [PATCH] fix(ui): use folder tree icon for submodules --- src/ui/gitree_ui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/gitree_ui.cpp b/src/ui/gitree_ui.cpp index 070a655..8059d4e 100644 --- a/src/ui/gitree_ui.cpp +++ b/src/ui/gitree_ui.cpp @@ -182,7 +182,7 @@ std::optional sidebar_section_index(std::string_view id) { if (id == ICON_TB_DESKTOP " LOCAL") return 0; if (id == ICON_TB_CLOUD " REMOTE") return 1; if (id == ICON_TB_TREE " WORKTREES") return 2; - if (id == ICON_TB_LAYERS_LINKED " SUBMODULES") return 3; + if (id == ICON_TB_FOLDER_TREE " SUBMODULES") return 3; return std::nullopt; } @@ -1435,7 +1435,7 @@ void draw_sidebar(float width) { {ICON_TB_DESKTOP, "Local branches", repo().local_branches.size()}, {ICON_TB_CLOUD, "Remote branches", repo().remote_branches.size()}, {ICON_TB_TREE, "Worktrees", repo().worktrees.size()}, - {ICON_TB_LAYERS_LINKED, "Submodules", repo().submodules.size()}, + {ICON_TB_FOLDER_TREE, "Submodules", repo().submodules.size()}, }; for (size_t index = 0; index < std::size(sections); ++index) { ImGui::PushID(static_cast(index)); @@ -1508,7 +1508,7 @@ void draw_sidebar(float width) { ICON_TB_DESKTOP " LOCAL", ICON_TB_CLOUD " REMOTE", ICON_TB_TREE " WORKTREES", - ICON_TB_LAYERS_LINKED " SUBMODULES", + ICON_TB_FOLDER_TREE " SUBMODULES", }; std::array section_open{}; std::vector open_indices; @@ -1556,7 +1556,7 @@ void draw_sidebar(float width) { section_heights[2], next_open_indices[2] < section_open.size() ? section_heights[next_open_indices[2]] / g_ui_scale : 0.0f, minimum_height, next_open_indices[2], next_open_indices[2] != last_open, section_open[2] && last_open != 2); - section(ICON_TB_LAYERS_LINKED " SUBMODULES", repo().submodules, ICON_TB_LAYERS_LINKED, + section(ICON_TB_FOLDER_TREE " SUBMODULES", repo().submodules, ICON_TB_FOLDER_TREE, "Add submodule", "Add submodule", SidebarItemKind::submodule, 3, section_heights[3], 0.0f, minimum_height, section_open.size(), false, false); ImGui::PopStyleVar();