How to customize the Rayo Look&Feel? [message #1058999] |
Thu, 16 May 2013 03:40  |
Eclipse User |
|
|
|
I would like to experiment with some modifications to the Rayo Look & Feel in our project. In [1] it says, "Rayo is a skinnable Look and Feel that can be configured in an XML property file." Is there any further or more detailed information available on how and where to do that?
I am specifically interested in setting a custom color for the background of selected text. From some debugging, I found that the color being used for this would probably be javax.swing.plaf.ColorUIResource[r=229,g=243,b=254] (a JTextFieldEx seems to be created with this color set in selectionColor), but I had no luck in finding the place where this is being set.
Is there a central place (like the XML property file mentioned above) where these aspects can be configured? Or even if there is no central place, where are colors and the like set for the indiviual components? I'm not that familiar with Swing look & feel development, so I might be missing some central or obvious point here.
Thanks in advance!
[1] http://wiki.eclipse.org/Scout/Tutorial/3.8/Rayo_Look_and_Feel
|
|
|
|
|
Re: How to customize the Rayo Look&Feel? [message #1059792 is a reply to message #1059727] |
Tue, 21 May 2013 11:37   |
Eclipse User |
|
|
|
Hi Jérémie,
sorry, I didn't find the time to post back my experiences until now. I had a look at the code pieces you pointed out and had the same impression as well - that overriding certain single aspects of the look and feel is not that simple. I found the xml-file that holds the UI color values, but I did not yet find the place where they are being assigned or stored so that I could hook in there.
Generally I would prefer to have a solution that would not need a new version of the Rayo plugins. So is there really no way to customize the selection color alone, say in SwingEnvironment or SwingApplication? We already override those, and given that we currently don't need to change anything else than the text selection color, I find replacing the whole UI xml-file a bit overengineered.
That being said, if there is no other way I thankfully accept your offer to adapt the Rayo look and feel, so that the injection of a custom xml-file would be possible. I suppose that would be a valuable contribution in any case, to really honor the "that can be configured in an XML property file" part in the wiki. 
We are using Scout 3.8.2, and the according Rayo plugins and fragments.
Thanks again!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04372 seconds