zoukankan      html  css  js  c++  java
  • RAP开发入门-主题更换

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

       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;
      }
    

      

  • 相关阅读:
    RPC框架实践之:Apache Thrift
    ubuntu中安装hadoop集群
    前端开发浏览器兼容问题
    3亿(int)数据-2亿(int)数据 求差集
    mvn docker 部署 每次都需要下载包的问题
    树莓派操作记录
    mysql 实现类似开窗函数的功能
    mysql 多字段更新
    go proxy转发工作中碰到的问题
    之前项目使用的轻量的goweb框架
  • 原文地址:https://www.cnblogs.com/wykCN/p/4632770.html
Copyright © 2011-2022 走看看