mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
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:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user