mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
ENH:refine GLCanvas update dark mode logic
Change-Id: Id4c4f00a18fa0672eab528a6819b6665031a8915
This commit is contained in:
parent
e59fe6511d
commit
aab62b77bf
27 changed files with 234 additions and 148 deletions
|
@ -105,6 +105,7 @@ private:
|
|||
//BBS: add part plate related logic
|
||||
Vec2d m_position{ Vec2d::Zero() };
|
||||
std::vector<Vec2d> m_bed_shape;
|
||||
bool m_is_dark = false;
|
||||
|
||||
public:
|
||||
Bed3D() = default;
|
||||
|
@ -141,6 +142,8 @@ public:
|
|||
void render(GLCanvas3D& canvas, bool bottom, float scale_factor, bool show_axes);
|
||||
//void render_for_picking(GLCanvas3D& canvas, bool bottom, float scale_factor);
|
||||
|
||||
void on_change_color_mode(bool is_dark);
|
||||
|
||||
private:
|
||||
//BBS: add partplate related logic
|
||||
// Calculate an extended bounding box from axes and current model for visualization purposes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue