mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 15:57:55 -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
|
@ -282,6 +282,7 @@ public:
|
|||
ExtrudersSequence m_extruders_sequence;
|
||||
float m_scale = 1.0;
|
||||
void set_scale(float scale = 1.0);
|
||||
void on_change_color_mode(bool is_dark);
|
||||
|
||||
protected:
|
||||
void add_custom_gcode(std::string custom_gcode);
|
||||
|
@ -316,6 +317,8 @@ private:
|
|||
std::array<int, 2> get_active_extruders_for_tick(int tick) const;
|
||||
|
||||
// Use those values to disable selection of active extruders
|
||||
bool m_is_dark = false;
|
||||
|
||||
bool is_osx{false};
|
||||
int m_min_value;
|
||||
int m_max_value;
|
||||
|
@ -346,6 +349,10 @@ private:
|
|||
void *m_one_layer_on_hover_id;
|
||||
void *m_one_layer_off_id;
|
||||
void *m_one_layer_off_hover_id;
|
||||
void* m_one_layer_on_light_id;
|
||||
void* m_one_layer_on_hover_light_id;
|
||||
void* m_one_layer_off_light_id;
|
||||
void* m_one_layer_off_hover_light_id;
|
||||
void* m_one_layer_on_dark_id;
|
||||
void* m_one_layer_on_hover_dark_id;
|
||||
void* m_one_layer_off_dark_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue