首页 > 其他 > 详细

RAP开发入门-主题更换

时间:2015-07-09 13:08:35      阅读:165      评论:0      收藏:0      [点我收藏+]

通过配置扩展点修改应用主题

   ps:需要提前准备好主题(theme.css)文件
  <!-- 注册主题扩展点 -->
   <extension
         point="org.eclipse.rap.ui.themes">
      <theme
            file="theme/fancy/fancy.css"
            id="cn.sunline.lttsweb.application.theme"
            name="Default theme">
      </theme>
      <theme
            file="theme/business/business.css"
            id="cn.sunline.lttsweb.application.theme.business"
            name="Business theme">
      </theme>
   </extension>
   <!-- 绑定主题扩展点 -->
   <extension
         point="org.eclipse.rap.ui.branding">
      <branding
            body="body.html"
            favicon="icons/16-png.png"
            id="cn.sunline.lttsweb.application.branding"
            themeId="cn.sunline.lttsweb.application.theme.business"
            title="一体化管理平台">
      </branding>
   </extension>
css定义控件效果语法
Button[PUSH], Button[TOGGLE] {
    border: 2px solid blue;
    color: rgb( 17, 23, 103 );
    background-color: #f9f9f9;
  }
  
  Button[PUSH]:hover, Button[TOGGLE]:hover {
    background-color: white;
  }

  

RAP开发入门-主题更换

原文:http://www.cnblogs.com/wykCN/p/4632770.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!