Hello
The following code is taken from the RAP Example demo application
public void configure( Application application ) {
Map<String, String> properties = new HashMap<String, String>();
properties.put( WebClient.PAGE_TITLE, "RAP Examples" );
properties.put( WebClient.BODY_HTML, readTextFromResource( "resources/body.html", "UTF-8" ) );
properties.put( WebClient.HEAD_HTML, readTextFromResource( "resources/head.html", "UTF-8" ) );
properties.put( WebClient.FAVICON, "icons/favicon.png" );
application.setOperationMode( OperationMode.SWT_COMPATIBILITY );
application.addEntryPoint( "/", MainUi.class, properties );
application.addStyleSheet( RWT.DEFAULT_THEME_ID, "theme/theme.css" );
application.addResource( "icons/favicon.png", createResourceLoader( "icons/favicon.png" ) );
application.addResource( "icons/loading.gif", createResourceLoader( "icons/loading.gif" ) );
registerClientScriptingResources( application );
}
This generates the following background color and dynamic gif when home page is loading:
Is there any way to change the gray like background color? I tried to set custom theme in EntryPoint.createShell(Display) like this
@Override
protected Shell createShell(Display display) {
Shell shell = super.createShell(display);
shell.setData(RWT.CUSTOM_VARIANT, "application");
return shell;
}
That's not working. I tried to set the theme on the display object and it is not working either. What is the correct way to handle this? Thanks