Community
Participate
Working Groups
The aspired behaviour is that disabled widgets ignore the userForeground and use the color given by the themeing. If the widget is re-enabled, the userForegound should be restored. In case of the following widgets, the foreground overwrites the theming even if the widget is disabled: Button, Combo, CTabFolder, Text, Tree (partially) The following widgets do not restore the foreground color: Toolbar.
This can be fixed in Control.java "getUserForeground" by returning null if the widget is disabled. Currently userBACKground overwrites the themeing of disabled widget in all cases. It is not clear to me what the most usefull behaviour would be for background.
Created attachment 158749 [details] fix
Created attachment 158764 [details] Fix - passing all tests
Applied patch to CVS HEAD