【问题标题】:Generate extjs 4.2 app with sencha cmd, default theme name did not work使用 sencha cmd 生成 extjs 4.2 应用程序,默认主题名称不起作用
【发布时间】:2013-07-22 05:09:18
【问题描述】:

我使用流命令:

sencha -sdk D:\dev\ext\ext-4.2.1.883 generate app -t ext-theme-neptune msg .\

然后我检查 /.sencha/app/sencha.cfg 文件,app.theme 仍然喜欢这个 app.theme=ext-theme-classic,

并且 bootstrap.css 仍然是 @import 'ext/packages/ext-theme-classic/build/resources/ext-theme-classic-all.css'。

如何使用 sencha cmd 更改应用程序主题?

【问题讨论】:

标签: extjs themes extjs4.2 sencha-cmd


【解决方案1】:

我没有尝试生成包含指定主题的应用程序。无论如何,您始终可以通过将项目目录中的 app.theme=ext-theme-classic 更改为 app.theme=ext-theme-neptune 来更改应用程序的 theme .sencha/app/sencha.cfg

然后,执行

sencha app refresh

【讨论】:

    【解决方案2】:

    也许它会帮助 smbd。对于 ExtJs 5,您只需
    1)app.json的变化:

    "theme": "ext-theme-crisp-touch"
    

    2) 命令行:

    sencha app build
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多