mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Merge branch 'profile_changes_reset' into updating
This commit is contained in:
commit
62d67d35ec
28 changed files with 803 additions and 394 deletions
|
@ -187,6 +187,7 @@ PresetBundle *g_PresetBundle= nullptr;
|
|||
PresetUpdater *g_PresetUpdater = nullptr;
|
||||
wxColour g_color_label_modified;
|
||||
wxColour g_color_label_sys;
|
||||
wxColour g_color_label_default;
|
||||
|
||||
std::vector<Tab *> g_tabs_list;
|
||||
|
||||
|
@ -206,6 +207,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)
|
||||
|
@ -699,6 +701,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