如何更改默认的 GWTBootstrap3 主题
How to Change Default GWTBootstrap3 Theme
我正在尝试更改默认的 GWTBoostrap3 主题,但没有成功。 I found this link。我已经完成了所解释的内容,但我没有看到任何变化。 'resource' 文件夹必须放在哪里?我在我的 WAR/nameofmyapp 文件夹中创建了这个文件夹,放入我的 theme.css 文件并通过添加以下行修改了我的 .gwt.xml 文件:
<public path='resource'>
<include name='css/*.css'/>
</public>
<stylesheet src='css/theme.css'/>
I downloaded these CSS theme files 仍然没有变化。我做错了什么?
了解 Public Path:
Modules can specify which subpackages are public, causing the named
package and its subpackages to be added to the public path. The public
path is the place in your project where static resources referenced by
your GWT module, such as CSS or images, are stored. When you compile
your application into JavaScript, all the files that can be found on
your public path are copied to the module’s output directory. (...)
When referencing public resources from a Module XML File, just use the
relative path within the public folder, the module’s base URL will be
prepended automatically. (...)
您已将 public 包指定为 resource
并包含 css/*.css
文件。所以你应该把theme.css
文件放到full.path.to.the.package.resource.css
包里。
也就是说public
标签的path
属性是相对于<module>.gwt.xml
文件所在文件夹的。
我正在尝试更改默认的 GWTBoostrap3 主题,但没有成功。 I found this link。我已经完成了所解释的内容,但我没有看到任何变化。 'resource' 文件夹必须放在哪里?我在我的 WAR/nameofmyapp 文件夹中创建了这个文件夹,放入我的 theme.css 文件并通过添加以下行修改了我的 .gwt.xml 文件:
<public path='resource'>
<include name='css/*.css'/>
</public>
<stylesheet src='css/theme.css'/>
I downloaded these CSS theme files 仍然没有变化。我做错了什么?
了解 Public Path:
Modules can specify which subpackages are public, causing the named package and its subpackages to be added to the public path. The public path is the place in your project where static resources referenced by your GWT module, such as CSS or images, are stored. When you compile your application into JavaScript, all the files that can be found on your public path are copied to the module’s output directory. (...) When referencing public resources from a Module XML File, just use the relative path within the public folder, the module’s base URL will be prepended automatically. (...)
您已将 public 包指定为 resource
并包含 css/*.css
文件。所以你应该把theme.css
文件放到full.path.to.the.package.resource.css
包里。
也就是说public
标签的path
属性是相对于<module>.gwt.xml
文件所在文件夹的。