Skip to content

Commit cc40361

Browse files
committed
Stash: File Selector Finished
1 parent 1df25bf commit cc40361

4 files changed

Lines changed: 197 additions & 175 deletions

File tree

3rdparty/imgui/src/imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5704,7 +5704,7 @@ void ImGui::Render()
57045704
}
57055705

57065706
// Draw modal/window whitening backgrounds
5707-
//RenderDimmedBackgrounds();
5707+
// RenderDimmedBackgrounds();
57085708

57095709
// Add ImDrawList to render
57105710
ImGuiWindow* windows_to_render_top_most[2];

3rdparty/imgui/src/imgui_widgets.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -863,13 +863,13 @@ bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos)
863863
// Render
864864
ImU32 bg_col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered);
865865
if (hovered)
866-
window->DrawList->AddRectFilled(bb.Min, bb.Max, bg_col);
867-
RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact);
866+
window->DrawList->AddRectFilled(bb.Min, bb.Max, bg_col, g.Style.FrameRounding);
867+
//RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact);
868868
ImU32 cross_col = GetColorU32(ImGuiCol_Text);
869869
ImVec2 cross_center = bb.GetCenter() - ImVec2(0.5f, 0.5f);
870870
float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f;
871-
window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, +cross_extent), cross_center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f);
872-
window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, -cross_extent), cross_center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f);
871+
window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, +cross_extent), cross_center + ImVec2(-cross_extent, -cross_extent), cross_col, g.FontSize * 0.1);
872+
window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, -cross_extent), cross_center + ImVec2(-cross_extent, +cross_extent), cross_col, g.FontSize * 0.1);
873873

874874
return pressed;
875875
}

0 commit comments

Comments
 (0)