CThemes: try to fix possible artefacts after changed theme

This ensures a clean screen before repaint after changed theme.

In some constellations (eg. with color gradient) it was possible to
see some old artefacts inside widget items, eg. in header.
This should avoid this.
Small disadvantage: screen needs complete repaint after changed theme, but
this should be not a problem in this case.
This commit is contained in:
2016-09-11 22:17:08 +02:00
parent 24dd6a8c22
commit bb216f975c

View File

@@ -150,6 +150,8 @@ int CThemes::Show()
std::string file_name = ""; std::string file_name = "";
CMenuWidget themes (LOCALE_COLORMENU_MENUCOLORS, NEUTRINO_ICON_SETTINGS, width); CMenuWidget themes (LOCALE_COLORMENU_MENUCOLORS, NEUTRINO_ICON_SETTINGS, width);
sigc::slot0<void> slot_repaint = sigc::mem_fun(themes, &CMenuWidget::hide); //we want to clean screen before repaint after changed Option
themes.OnBeforePaint.connect(slot_repaint);
themes.addIntroItems(LOCALE_COLORTHEMEMENU_HEAD2); themes.addIntroItems(LOCALE_COLORTHEMEMENU_HEAD2);