Community
Participate
Working Groups
Build 20020115 When the titlebar system colous are changed, Eclipse titlebars do not update. Likewise for the current view or editor tab. You have to restart to get the new colours See trigger bug 7794. Currently we set the background gradient colours on the corresponding CLabels and CTabFolders using the system colours SWT.COLOR_TITLE_BACKGROUND, SWT.COLOR_TITLE_BACKGROUND_GRADIENT, and SWT.COLOR_WIDGET_BACKGROUND. These system colors are cached in Eclipse UI (see code in WorkbenchColors.startUp).
*** This bug has been marked as a duplicate of 7712 ***
OOPS. Was searching for 7712
*** Bug 10963 has been marked as a duplicate of this bug. ***
Requires new API. Will revisit after R2.0.
Post 2.0. Re-opening bug reports for review.
On Linux-Gtk+, the ::style-set signal is emitted when the system colours are changed: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-style-set http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00115.html This could be used to implement an event which indicates that the system colour constants in SWT have been updated.
This info is good to know. However, it is not actually relevant to this bug report. Maybe it should be added to bug 37457 or a new bug should be entered about GTK not responding to system colour changes. This bug is not really about knowing when the system colours change. This bug is about the fact that the CLabel and CTabFolder API takes Color as arguments and not SWT.COLOR_* constants. Even if CTabFolder knew that the system colours had changed, it would not know that the Color object it was given was derived from a system colour and not just some other RGB values picked by the application designer.
Thanks, I opened bug 61445.
*** Bug 24337 has been marked as a duplicate of this bug. ***
This could now be fixed in UI by (carefully) using a SWT.Settings listener on the display to reset the system colors. I don't recomend doing this so late in 3.3. When/if this bug is fixed, I'd like to review the code.
Yes this would be a fairly significant change, since it needs to rippled through the workbench themes, etc., to be propagated to the CTabFolder.
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Possible these days with CSS. While this was fixed, I mark it as worksforme as I don't think it is worth hunting down the commit id.