Community
Participate
Working Groups
Build: 20020411 Is there any API that supports notification when the OS system colors change? If not, would it be feasible for such an API to be developed? Currently, if the system colors change, the background for editors and views, and the Eclipse window title bar change as well, but the title tabs for editors and views do not change until Eclipse is restarted. See bug 9567 for more details. If the API mentioned above were supplied, we would be able to fix this problem.
The current policy for SWT is that, if you want the system colors to be used, you should not set colors into widgets. I realize that this is not possible given the existing api on CTabFolders and CLabels. See bug 10963 for a description of a possible new API to support this. Separate from that, this PR is a request for new API to allow applications to get a callback when system colors change. Marking this as "enhancement" to indicate this.
Couldn't notification in win32 be implemented already? LRESULT WM_SYSCOLORCHANGE (int wParam, int lParam) { return null; }
Moving from Later.
*** Bug 9393 has been marked as a duplicate of this bug. ***
*** Bug 42325 has been marked as a duplicate of this bug. ***
Will this be addressed for 3.0?
*** Bug 37457 has been marked as a duplicate of this bug. ***
*** Bug 61445 has been marked as a duplicate of this bug. ***
I20040506 When the Gtk+ theme is changed, many custom controls such as CTabFolder do not have their colours updated. 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. I believe this is similar to bug 37457 which describes a similar event which is not propagated under Windows.
*** Bug 80244 has been marked as a duplicate of this bug. ***
*** Bug 27588 has been marked as a duplicate of this bug. ***
Andre, we have this implemented on all platforms and the code is released but we can't get notification when the 'Highlight Color' is changed. We are using AEInstallEventHandler(). Do you have any ideas?
Tod, is there any way to get notificiation when the 'Highlight Color' changes on the Mac? We are using AEInstallEventHandler() to look for other system changes.
Do you mean one of the JFace colors? The banner or header color?
Steve's question was actually directed at Todd Brackett from Apple.
Sorry Tod, I meant Todd. Can one of you either delete or add a 'd' to your name or am I going to have to fix the bug on my side?
;-)
Fixed > 20051004 Silence from Apple means that we had to work around the problem on the Mac by diffing the selection color (ie. kThemeBrushPrimaryHighlightColor) in sleep (). If we notice it changed, we send the settings event. It's awful.
wow.. I think this is nearly the oldest enhancement request in bugzilla! Opened 2002-03-25. Congratulations ... even if ugly, at least you're making progress! :) [sorry for the noise, hope you don't mind my attempt at humor ... and sincere congratulations]
Nawww ... I've fixed older.
I hope you aren't losing any sleep at night, Steve. Thanks for the new function.