Ext - CSS/Theme Guidelines - Ext JS

本文介绍了一种实用的方法来创建自定义的Ext主题。通过使用默认主题作为参考,并结合Sketch、Illustrator和Photoshop等工具,作者详细阐述了从设计到实现的全过程。此外,还提供了一些实用技巧,如如何选择合适的主题作为起点。
All,

The themes that are provided are kewl, but I'd like to incorporate a color scheme that I have on the website that i manage for a non-profit....

I'd like to know if there are any guidelines and/or docs that describe the best way of creating a custom Ext color theme?

And/or for those that have created an Ext theme, what is the best way of going about it????

Any help is greatly appreciated!!

Thanks in Advance!!
Reply With Quote
  #2  
Old 03-08-2007, 08:44 PM
Default

For going about it, I have done the following:



- Use the default theme and full css as references: other themes have (had) holes in them in terms of what widgets are provided, etc. I always found default easiest to reference. Your starting place might be looking through the CSS file and the directory. I use Safari a lot, so opening examples and viewing activity (to see what images loaded) and the DOM (to see the structure of the elements created with JavaScript) combined with studying what has been done was my true start. Oh, and then looking at the other themes to see what they are changing.

- Sketch. On paper... just like you would with any design project.

- I like to work in Illustrator, others might disagree here, but I have always enjoyed UI work in Illustrator. What got me in the habit is an immediate plus if there are clients involved: vector work can be scaled up -- 11"x17" presentation boards of UI components tend to get favorable responses. I start by bringing in screenshots of default UI components on a locked layer and drawing my work on layers on top -- I find this helps keep what I am imagining somewhat in line with the existing default style sheets (which lets me focus on being creative instead of big changes to things that are pretty good to begin with)

- I bring the work from Illustrator into Photoshop and, referencing the files in the resources folder, build sprites. These get saved in a new folder mirroring the directory structure of the default resources folder and the file names match.

- At this point, I make some obvious changes to the default CSS and globally replace the folder path. I know that I still have a lot to do with CSS, but I am pretty eager to see things, so I save the file as a CSS for my theme and modify one of Jack's examples to load my theme CSS -- it won't look right (at all), but I can start go get a feel for how things will look, and that keeps me going.

- After that it is just spending time working through the CSS for my theme to get things done.
Reply With Quote
  #3  
Old 03-08-2007, 08:46 PM
Default

Start with the theme that is closest to the one your going to create. (aero, gray, vista)

copy the resources/css/ytheme-[themename].css file to a new name, ie: ytheme-kickbutt.css

copy the resources/images/[themename] folder to a new folder name, in my example above its 'kickbutt'

then include your new theme css file in your page and start the editing fun!

I havent found any docs on the styles, but jacks new element inspector (Ctrl-Shift-Home) helps allot in figuring out what styles do what.
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值