css - How to to customize GWT components style? -
i'm developing multi-module application using gwt 2.5.1. i'm not using gwt theme. want customize style of gwt widgets, example button , checkbox.
i see 2 solutions:
- write css file loaded in application (link in html page). css contain css rules using gwt defined names, .gwt-button buttons , .gwt-checkbox, .gwt-checkbox-disabled checkboxes. solution don't takes advantage of css optimizations made gwt compiler.
- use cssresource , set style name each time use button or checkbox. solution take advantage of css optimizations requires set style name every time create new widget.
there other solutions? correct one?
you can put styles in cssresource well. put @external on top of styles in css file, , go.
for example:
@external gwt-datepicker; .gwt-datepicker { ... }
hope helps.
Comments
Post a Comment