mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +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.
Origin commit data
------------------
Commit: bb216f975c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-11 (Sun, 11 Sep 2016)
This commit is contained in:
@@ -150,6 +150,8 @@ int CThemes::Show()
|
||||
std::string file_name = "";
|
||||
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user