mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
ENH:Improving the AMS display of empty disks
It is difficult to distinguish between blank and empty thumbnails, so adding a diagonal line on the empty disk indicates empty JIRA:STUDIO-4515 Change-Id: I46038c9256fc43927976b82f29ea895ce907d247
This commit is contained in:
parent
d2499461f7
commit
7b90704d4b
1 changed files with 10 additions and 2 deletions
|
@ -1292,7 +1292,6 @@ AMSRoad::AMSRoad(wxWindow *parent, wxWindowID id, Caninfo info, int canindex, in
|
|||
wxPostEvent(GetParent()->GetParent(), close_event);
|
||||
#endif // __WXMSW__
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1659,7 +1658,16 @@ void AMSItem::doRender(wxDC &dc)
|
|||
dc.DrawBitmap(m_ts_bitmap_cube->bmp(),left,(size.y - AMS_ITEM_CUBE_SIZE.y) / 2);
|
||||
}
|
||||
else {
|
||||
dc.DrawRoundedRectangle(left, (size.y - AMS_ITEM_CUBE_SIZE.y) / 2, AMS_ITEM_CUBE_SIZE.x, AMS_ITEM_CUBE_SIZE.y, 2);
|
||||
wxRect rect(left, (size.y - AMS_ITEM_CUBE_SIZE.y) / 2, AMS_ITEM_CUBE_SIZE.x, AMS_ITEM_CUBE_SIZE.y);
|
||||
if(iter->material_state==AMSCanType::AMS_CAN_TYPE_EMPTY){
|
||||
dc.SetPen(wxPen(wxColor(0, 0, 0)));
|
||||
dc.DrawRoundedRectangle(rect, 2);
|
||||
|
||||
dc.DrawLine(rect.GetRight()-1, rect.GetTop()+1, rect.GetLeft()+1, rect.GetBottom()-1);
|
||||
}
|
||||
else {
|
||||
dc.DrawRoundedRectangle(rect, 2);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue