Sencha touch 将默认蓝色主题更改为绿色
我想将Sencha Touch应用程序的默认蓝色更改为绿色。我遵循的步骤如下所示:Sencha touch 将默认蓝色主题更改为绿色,sencha-touch,sencha-touch-2,sencha-architect,Sencha Touch,Sencha Touch 2,Sencha Architect,我想将Sencha Touch应用程序的默认蓝色更改为绿色。我遵循的步骤如下所示: gem更新——系统 gem安装指南针 compass创建myfile 复制了.scss文件并将其粘贴到touch-2.2.1/resources/sqss/目录中 将以下代码粘贴到该文件中,并将其命名为happy.css: $base-color: #709e3f; @import 'sencha-touch/default/all'; @include sencha-panel; @include sencha
gem更新——系统
gem安装指南针
compass创建myfile
.scss
文件并将其粘贴到touch-2.2.1/resources/sqss/
目录中happy.css
:
$base-color: #709e3f;
@import 'sencha-touch/default/all';
@include sencha-panel;
@include sencha-buttons;
@include sencha-sheet;
@include sencha-tabs;
@include sencha-toolbar;
@include sencha-list;
@include sencha-layout;
@include sencha-loading-spinner;
compass.scss
app.html
页面中的名称happy.scss
@import 'sencha-touch/default';
在这条线之前
@import 'sencha-touch/default/all';
也根据文件
There are a lot of changes from Sencha Touch 2.1 to 2.2,
The most important change to be aware of is the move away from using mixins
for each component
We found that using mixins for each component was quite slow when compiling your Sass,
so we decided to simply move to using @import to just include each component.
在Touch2.1中,您的样式表如下所示:
@import 'sencha-touch/default/all';
@include sencha-panel;
@include sencha-buttons;
// and other components…
@import 'sencha-touch/default';
@import 'sencha-touch/default/Panel';
@import 'sencha-touch/default/Button';
// and other components
在Touch2.2中,它看起来是这样的:
@import 'sencha-touch/default/all';
@include sencha-panel;
@include sencha-buttons;
// and other components…
@import 'sencha-touch/default';
@import 'sencha-touch/default/Panel';
@import 'sencha-touch/default/Button';
// and other components