-
23 Nov 2012 1:08 AM #1
Unanswered: Theming In Extjs 4
Unanswered: Theming In Extjs 4
Hi,
Currently i'm trying to theme some components that i'm working with.
I have tried changing the base color and it works fine. But i want to change the form textfield to a rounded corner, i thought i will get a variable for text field, which i didn't. When i checked the form variable i saw form-field.
My questions are;
1. is the form-field a class of the textfield and is that where i'm suppose to change the textfield?
2. there is nothing like border-radius on the form variable, where am i suppose to specify the border radius?
3. Can a textfield border really be changed to a round corner without an image, by specifying the border radius?
4. Can i specify a different color for the form, toolbar, window and other components separately?
Thanks in advance.
Pat.
-
26 Nov 2012 7:46 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,691
- Vote Rating
- 435
- Answers
- 3111
Here is how I would do it:
Code:new Ext.form.Panel({ renderTo : document.body, items : [ { xtype : 'textfield', fieldLabel : 'Rounded', cls : 'rounded-input' } ] });Code:.rounded-input input { border-radius : 5px; }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
27 Nov 2012 12:17 AM #3
Thanks Simeons, ....... that was a major breakthrough for me.
I'm grateful.
But the only thing i'm still having issue with is font-family and size. Pls can u still suggest?
-
27 Nov 2012 5:10 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,691
- Vote Rating
- 435
- Answers
- 3111
You can use the same class just add font-family and font-size rules
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Nov 2012 7:01 AM #5



Reply With Quote