diff --git a/src/ui/gitree_ui.cpp b/src/ui/gitree_ui.cpp index c5775a1..e4b2422 100644 --- a/src/ui/gitree_ui.cpp +++ b/src/ui/gitree_ui.cpp @@ -564,10 +564,8 @@ bool sidebar_collapse_row(const char* id, const std::string& label, bool default }; const bool clicked = ImGui::InvisibleButton("##collapse", size); const ImVec2 minimum = ImGui::GetItemRectMin(); - const ImVec2 maximum = ImGui::GetItemRectMax(); ImDrawList* draw = ImGui::GetWindowDrawList(); const bool hovered = ImGui::IsItemHovered(); - if (hovered) draw->AddRectFilled(minimum, maximum, IM_COL32(51, 55, 63, 220)); constexpr ImU32 icon_color = IM_COL32(112, 118, 128, 255); const ImU32 chevron_color = hovered ? IM_COL32(218, 223, 231, 255) : IM_COL32(126, 132, 142, 255);