mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Added some performance changes
This commit is contained in:
parent
d254c39a77
commit
3ca2dfbc1d
8 changed files with 455 additions and 181 deletions
|
@ -179,6 +179,7 @@ AppConfig *g_AppConfig = nullptr;
|
|||
PresetBundle *g_PresetBundle= nullptr;
|
||||
wxColour g_color_label_modified;
|
||||
wxColour g_color_label_sys;
|
||||
wxColour g_color_label_default;
|
||||
|
||||
std::vector<Tab *> g_tabs_list;
|
||||
|
||||
|
@ -198,6 +199,7 @@ static void init_label_colours()
|
|||
g_color_label_modified = wxColour(253, 111, 40);
|
||||
g_color_label_sys = wxColour(115, 220, 103);
|
||||
}
|
||||
g_color_label_default = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
|
||||
}
|
||||
|
||||
void set_wxapp(wxApp *app)
|
||||
|
@ -548,6 +550,10 @@ const wxColour& get_sys_label_clr() {
|
|||
return g_color_label_sys;
|
||||
}
|
||||
|
||||
const wxColour& get_default_label_clr() {
|
||||
return g_color_label_default;
|
||||
}
|
||||
|
||||
unsigned get_colour_approx_luma(const wxColour &colour)
|
||||
{
|
||||
double r = colour.Red();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue