mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-21 09:01:55 -06:00
ENH:adjust assembly view toolbar UI (STUDIO-1213)
https://jira.bambooolab.com/browse/STUDIO-1213 Change-Id: I3b17b37a229348d347f56d0672f2c258fbeb91e1
This commit is contained in:
parent
ffc4e7080c
commit
9b47255bc1
5 changed files with 98 additions and 38 deletions
|
@ -3815,7 +3815,7 @@ void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir d
|
|||
draw_list->AddTriangleFilled(center + a, center + b, center + c, col);
|
||||
}
|
||||
|
||||
void ImGui::BBLRenderArrow(ImDrawList *draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale)
|
||||
void ImGui::BBLRenderArrow(ImDrawList *draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float thickness, float scale)
|
||||
{
|
||||
const float h = draw_list->_Data->FontSize * 1.00f;
|
||||
float r = h * 0.40f * scale;
|
||||
|
@ -3841,8 +3841,8 @@ void ImGui::BBLRenderArrow(ImDrawList *draw_list, ImVec2 pos, ImU32 col, ImGuiDi
|
|||
case ImGuiDir_COUNT: IM_ASSERT(0); break;
|
||||
}
|
||||
//draw_list->AddTriangleFilled(center + a, center + b, center + c, col);
|
||||
draw_list->AddLine(center + a, center + c,col);
|
||||
draw_list->AddLine(center + a, center + b,col);
|
||||
draw_list->AddLine(center + a, center + c, col, thickness);
|
||||
draw_list->AddLine(center + a, center + b, col, thickness);
|
||||
}
|
||||
|
||||
void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue