What is the best approach towards styling GWT applications?

后端 未结 2 387
暗喜
暗喜 2020-12-30 11:41

General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app thr

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 12:10

    So far, the best approach I found:

    1. get rid of any default GWT theme
    2. use UiBinder as much as possible
    3. place your CSS in ui.xml that describes the widget
    4. have one public Common CssResource with rules reused by many widgets

    that way you don't need to maintain one global stylesheet which always is a pain (common problem: where is this rule used?)

提交回复
热议问题