Page MenuHomePhabricator | MITK

ThemeIcon() of QmitkStyleManager and berryQtStyleManager does not work with eager plugins
Open, NormalPublic


If one tries to theme icon in the activator of an eager plugin (e.g. org.mitk.gui.qt.matchpoint.core.helper), it does not work and the icon does not get themed.

Reason: Eager plugin activatores are activated before berryQtWorkbenchAdvisor::Initialize() is called. In this initialize() call the the style name is recived from the app preferences and SetStyle() of the style manager is called. At this point the style sheet is available. Before that the default style sheets have been added to the berryQtStyleManager, but none has been selected. So ThemeIcon() gets an empty style sheet and leaves the icon untouched.

Event Timeline

floca created this task.Aug 30 2018, 10:29 AM
floca updated the task description. (Show Details)Aug 30 2018, 10:37 AM
kislinsk triaged this task as Normal priority.Nov 22 2018, 2:17 PM