2D Bed (Bed shape dialog) improvements (#9524)

* init

* fix grid & text colors for light theme

* scale axis

* fix custom bed plate not appearing

* merge functions for generating gridlines

* simplify

* Fix flatpak build

---------

Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
This commit is contained in:
yw4z
2025-05-04 11:38:38 +03:00
committed by GitHub
parent 038b25627e
commit a91ee67ac7
7 changed files with 147 additions and 85 deletions

View File

@@ -458,13 +458,13 @@ void BedShapePanel::set_shape(const Pointfs& points)
{
BedShape shape(points);
m_shape_options_book->SetSelection(int(shape.get_page_type()));
shape.apply_optgroup_values(m_optgroups[int(shape.get_page_type())]);
// Copy the polygon to the canvas, make a copy of the array, if custom shape is selected
if (shape.is_custom())
m_loaded_shape = points;
m_shape_options_book->SetSelection(int(shape.get_page_type()));
shape.apply_optgroup_values(m_optgroups[int(shape.get_page_type())]);
update_shape();
return;