RWT standalone, css theming wont work [message #1035039] |
Sat, 06 April 2013 08:01 |
ark ark Messages: 2 Registered: April 2013 |
Junior Member |
|
|
i try to small change default theme. App is example.rwt.simple.ds from github.com/ralfstx/rap-helpers (or RAP HelloWord Template from eclipse)
So i place into the project root file sample.css, like this: * {
font: 10 px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
background-color: #ff0000;
}
Display {
font: 10 px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
background-color: #ff0000;
} and tried to add it into the config:
package rwt.simple;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.rap.rwt.RWT;
import org.eclipse.rap.rwt.application.Application;
import org.eclipse.rap.rwt.application.ApplicationConfiguration;
import org.eclipse.rap.rwt.application.Application.OperationMode;
import org.eclipse.rap.rwt.client.WebClient;
public class SimpleConfiguration implements ApplicationConfiguration {
@Override
public void configure( Application application ) {
Map<String, String> properties = new HashMap<String, String>();
application.addStyleSheet(RWT.DEFAULT_THEME_ID, "sample.css");
properties.put( WebClient.PAGE_TITLE, "Simple RWT Example" );
application.addEntryPoint( "/simple", SimpleEntryPoint.class, properties );
}
} and it has no effect. I try to extract default.css and others from org.eclipse.rap.rwt_xxxyyy.jar/resource.theme and register default.css as new theme, and anyway have no luck. Have i try to do some additional actions except this to make css work?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02661 seconds