mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
NEW:ams control support for more gradient colors
Change-Id: I3e7e7e1f340a443200b9225b142f6398b4824513
This commit is contained in:
parent
e3d89f2154
commit
ee2ef44dc7
5 changed files with 72 additions and 1 deletions
|
@ -31,7 +31,9 @@ namespace Slic3r { namespace GUI {
|
|||
class ColorPicker : public wxWindow
|
||||
{
|
||||
public:
|
||||
wxBitmap m_bitmap_border;
|
||||
wxColour m_colour;
|
||||
std::vector<wxColour> m_cols;
|
||||
bool m_selected{false};
|
||||
bool m_show_full{false};
|
||||
|
||||
|
@ -39,6 +41,7 @@ public:
|
|||
~ColorPicker();
|
||||
|
||||
void set_color(wxColour col);
|
||||
void set_colors(std::vector<wxColour> cols);
|
||||
void set_selected(bool sel) {m_selected = sel;Refresh();};
|
||||
void set_show_full(bool full) {m_show_full = full;Refresh();};
|
||||
|
||||
|
@ -92,6 +95,7 @@ public:
|
|||
void post_select_event();
|
||||
|
||||
void set_color(wxColour color);
|
||||
void set_colors(std::vector<wxColour> colors);
|
||||
|
||||
void on_picker_color(wxCommandEvent& color);
|
||||
MachineObject* obj{ nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue