mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	This commit is contained in:
		@@ -843,9 +843,8 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos)
 | 
			
		||||
    // Render
 | 
			
		||||
    ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
 | 
			
		||||
    ImU32 text_col = GetColorU32(ImGuiCol_Text);
 | 
			
		||||
    ImVec2 center = bb.GetCenter();
 | 
			
		||||
    if (hovered || held)
 | 
			
		||||
        window->DrawList->AddCircleFilled(center/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12);
 | 
			
		||||
        window->DrawList->AddCircleFilled(bb.GetCenter()/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12);
 | 
			
		||||
    RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f);
 | 
			
		||||
 | 
			
		||||
    // Switch to moving the window after mouse is moved beyond the initial drag threshold
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user