主题 Sencha 触摸列表
我想更改分组列表中标题的颜色。目前我已经有了默认主题。我想我必须使用类似“$list-header-bg-color”的东西,但是:
我可以在哪里使用它?我试着写一些类似的东西:
$list-header-bg-color = '#CCC'
但它根本不起作用......有人可以解释我如何做有效吗? (请举一个小例子)。提前致谢
I want to change the color of the headers in a grouped list. For the moment I've got the default theme. I think I have to use something like "$list-header-bg-color" but :
WHERE can I use it ? I tried to write something like :
$list-header-bg-color = '#CCC'
directly at the end of the "sencha-touch.css" file but it doesn't work at all ... Somebody can explain me how does it works ? (with a little example please). Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先你需要安装 ruby
然后安装 ruby gems
然后安装 compass
然后打开你的应用程序 *.scss 文件(应该在 resources/sass/ 中)
行之后
在包含你的
注意,默认情况下这个 var 的值是
也许你可以更改基色以获得更“统一”的外观(取决于您想要做什么...)
然后编译您的 scss 文件
现在您的主题应该已编译到您的 app.css 并且您的新颜色很好:)
对于更详细的检查这篇文章我不久前写的: sass-for- sencha-touch-2-windows-7
First you need to install ruby
then install ruby gems
then install compass
then open your application *.scss file (should be in resources/sass/)
after the line
include your line
Note that by default the value of this var is
Maybe you can change the base-color to have a more "unified" look (depending on what you want to do ...)
then compile your scss file
Now your theme should have been compiled to your app.css and your new color is good :)
For more detail check this article I wrote not long ago : sass-for-sencha-touch-2-windows-7
Sencha 使用 SASS 进行主题化。因此该行应该放在 sencha-touch.scss 文件中。然后你应该用compass编译该文件以获得一个css文件。观看此视频:
http://vimeo.com/26506883
http://vimeo.com/17879651
也检查一下http://www.sencha.com/blog/sencha-touch-theme-contest-winners-announced/
Sencha is using SASS for theming. So that line should go in the sencha-touch.scss file. Then you should compile that file with compass to get a css file. See this videos:
http://vimeo.com/26506883
http://vimeo.com/17879651
Check this also http://www.sencha.com/blog/sencha-touch-theme-contest-winners-announced/