문제

I am developing a sencha touch application using sencha architect. I have to change the background color, font color, font-family and icons according my company's standard in the app.

I tried to create SASS file
@import 'sencha-touch/base'; @import 'sencha-touch/base/all'; $myapp-font-family:"Arial"; $myapp-gray:'#707070'; .x-body{ font-family:$myapp-font-family; background-color:myapp-gray; } .x-panel{ background-color:$myapp-gray; }

It is not working / reflecting.

Question: how can we theme application. How can we use sass and css altogether in the app. I would like to know the same for ExtJS also.

--Sridhar

도움이 되었습니까?

해결책

If you're already using Sencha Architect, theming is built right in if you're using the latest version. See this post from the Sencha blog.

다른 팁

In sencha touch you have to use the command sencha app build for compiling the sass files. For style editing you can also use sencha app watch, in this way sencha cmd line tool will listent for changes in your sass files and automatically rebuilds your project.

I haven't used sencha architect.

But if its about using sass and css for theming sencha application than this article from moduscreate will really be helpful for a start.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top