diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index 48503b6d7..b1c207c2a 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -63,11 +63,24 @@ CComponentsWindow::CComponentsWindow( const int& x_pos, const int& y_pos, const initVarWindow(x_pos, y_pos, w, h, caption, iconname, has_shadow, color_frame, color_body, color_shadow); } -CComponentsWindowMax::CComponentsWindowMax(const string& caption, const string& iconname) - :CComponentsWindow(0, 0, 0, 0, caption, iconname){}; +CComponentsWindowMax::CComponentsWindowMax( const string& caption, + const string& iconname, + bool has_shadow, + fb_pixel_t color_frame, + fb_pixel_t color_body, + fb_pixel_t color_shadow) + :CComponentsWindow(0, 0, 0, 0, caption, + iconname, has_shadow, color_frame, color_body, color_shadow){}; -CComponentsWindowMax::CComponentsWindowMax(neutrino_locale_t locale_caption, const string& iconname) - :CComponentsWindow(0, 0, 0, 0, locale_caption != NONEXISTANT_LOCALE ? g_Locale->getText(locale_caption) : "", iconname){}; +CComponentsWindowMax::CComponentsWindowMax( neutrino_locale_t locale_caption, + const string& iconname, + bool has_shadow, + fb_pixel_t color_frame, + fb_pixel_t color_body, + fb_pixel_t color_shadow) + :CComponentsWindow(0, 0, 0, 0, + locale_caption != NONEXISTANT_LOCALE ? g_Locale->getText(locale_caption) : "", + iconname, has_shadow, color_frame, color_body, color_shadow){}; void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const int& w, const int& h, const string& caption, diff --git a/src/gui/components/cc_frm_window.h b/src/gui/components/cc_frm_window.h index b3cd34137..d658bd090 100644 --- a/src/gui/components/cc_frm_window.h +++ b/src/gui/components/cc_frm_window.h @@ -164,10 +164,18 @@ class CComponentsWindowMax : public CComponentsWindow { public: ///simple constructor for CComponentsWindow, provides parameters for caption as string and icon, this shows a centered window based up current screen settings - CComponentsWindowMax(const std::string& caption, const std::string& iconname = ""); + CComponentsWindowMax( const std::string& caption, const std::string& iconname = "", + bool has_shadow = CC_SHADOW_OFF, + fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, + fb_pixel_t color_body = COL_MENUCONTENT_PLUS_0, + fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); ///simple constructor for CComponentsWindow, provides parameters for caption from locales and icon, this shows a centered window based up current screen settings - CComponentsWindowMax(neutrino_locale_t locale_caption, const std::string& iconname = ""); + CComponentsWindowMax( neutrino_locale_t locale_caption, const std::string& iconname = "", + bool has_shadow = CC_SHADOW_OFF, + fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, + fb_pixel_t color_body = COL_MENUCONTENT_PLUS_0, + fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); }; #endif