Merge branch 'profile_changes_reset' into updating

This commit is contained in:
Vojtech Kral
2018-04-24 18:15:23 +02:00
28 changed files with 803 additions and 394 deletions

View File

@@ -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();