【问题标题】:sencha architect theme/css change based on profile/ device type基于配置文件/设备类型的sencha架构师主题/css更改
【发布时间】:2015-10-26 11:14:49
【问题描述】:

我已经开始使用 sencha 架构师进行 sencha 触控开发。

之前我会使用应用程序的分析来区分基于设备为应用程序加载的 css。至于像 mac mini 这样的设备,与其他设备相比,工具栏的高度可以从默认增加。

在 Sencha Architect 中,正在使用已加载其 scss 文件的主题,但没有找到更改主题的选项。

如果我错了或错过了实现所需输出所需的任何步骤,请纠正我。

【问题讨论】:

    标签: extjs sencha-touch sencha-architect


    【解决方案1】:
    1. 在架构师上创建 2 个主题 --> 资源
    2. 在 app.json 添加 "builds": { "NameProfile1": { "theme": "theme-crisp-d8aec586-e27f-458a-a90a-541fc781ad15" }, "NameProfile2": { "theme": "theme-crisp-touch-e3a4f7f7-77c6-44af-966b-c09d1fab2b0c" } },

    3. 构建

    现在使用

    http://localhost:8080/?profile=NameProfile1

    http://localhost:8080/?profile=NameProfile2

    【讨论】:

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