Is it possible to mix themes in ExtJS 4?

房东的猫 提交于 2019-12-13 06:14:33

问题


I want to have neptune toolbar on classic themed ExtJS website. Is this thing possible ? If so , How ?


回答1:


You could create a custom theme derived from a classic theme and you could copy the toolbar styles to your custom theme folder.

sencha generate theme my-custom-theme

Then, on your project's config file found on project folder/.sencha/app/sencha.cfg, edit/add the following:

app.theme=my-custom-theme
#app.theme=ext-theme-classic

I assume you have generated your project through Sencha CMD. Copy the toolbar styles found on packages/ext-theme-neptune/sass/var/toolbar and/or packages/ext-theme-neptune/sass/src/toolbar to your custom theme.



来源:https://stackoverflow.com/questions/19695009/is-it-possible-to-mix-themes-in-extjs-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!