如何更改sencha touch 2应用程序的所有面板和容器的背景颜色 [英] how to change background color of all panels and containers of sencha touch 2 app
本文介绍了如何更改sencha touch 2应用程序的所有面板和容器的背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更改sencha应用程序的主题,我想知道如何更改sencha touch应用程序的所有面板和容器的背景颜色,例如
I am trying to change theme of sencha application, i want to know how to change background color of all panels and containers of sencha touch app like touchstyle application
我更改了标题栏,选项卡面板的颜色,但是我不知道如何更改面板和容器的颜色.
I changed the title bar, tab panel color, but i don't know how to change the color of panel and container.
推荐答案
设置样式配置.
style: {
background: 'red'
}
您可以为面板设置cls
配置.例如:cls: red-bg
并在样式表中:
You could set the cls
config for your panel. E.g: cls: red-bg
and in your stylesheet:
.red-bg .x-panel-body{
background-color : red !important;
}
这篇关于如何更改sencha touch 2应用程序的所有面板和容器的背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文