-
12 Feb 2013 8:59 AM #1
sencha generate theme, how to ?!?
sencha generate theme, how to ?!?
Hi everyone,
I would like to generate a new theme for my Ext js 4.1.1 gpl project, but I must miss something, because I do not understand how it works...
I tried the following command "", but I got the following messageCode:sencha generate theme foo
So my question is quite simple... How to start...Code:Sencha Cmd v3.0.2.288 [ERR] Failed to determine framework path. Please ensure this command was issued from either a framework or application directory
In which folder am I supposed to be ?
I read the documentation about the theme creation, but I couldn't find this information...
I guess once told it will be obvious, but I must admit that I don't understand how to do it...
Best regards
Daniel
-
13 Feb 2013 9:00 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,682
- Vote Rating
- 435
Are you using 4.1.1 or 4.1.1a?
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.
-
14 Feb 2013 4:32 AM #3
Hi Mitchell,
I guess it is version 4.1.1 as I have it for a while...
I wasn't aware of a different version with the same number...
In the archive it is written 4.1.1-gpl.
Best regards
Daniel
-
14 Feb 2013 5:56 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,682
- Vote Rating
- 435
When Sencha Cmd was released, we released a 4.1.1a that was exactly like 4.1.1 but can use Cmd. You can get a link to 4.1.1a at: http://www.sencha.com/forum/showthre...ha-Cmd-V3-Beta
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.
-
20 Feb 2013 3:09 AM #5
Ok, this was the first thing.
But the problem is now located in the documentation !
Build an app is defined like this in the doc (http://docs.sencha.com/ext-js/4-1/#!.../command_theme)
but this doesn't work ! You have to specify the app name before setting the path. Like thisCode:sencha generate app /temp/dummyApp
Then regarding the theme generation with compass, all the path are wrong !Code:sencha generate app dummyApp /temp/dummyApp
Here is what the doc clam :
But here is the reality :Code:cd /path/to/MyApp/resources/sass/default compass compile
At this stage I have to say that the documentation doesn't deserve the CMD at all !!!Code:cd /path/to/MyApp/packages/themeName/sass compass compile
I do understand taht things are moving, but please, update de documentation and try to have a real step by step explanation for theme building.
I'm still a little bit confuse with the images...
When I run the following command to build my theme
the images are copied from "ext\resources\themes\images\default" folder to my theme resource image folder. So if I understand it well, this mean that I need to change the images I want to change (let say the close button image) directly in the default theme image... Not a good practice I think...Code:sencha theme build energee
And then, why do I have all the images (even the generated one) in this default folder ??!!?? I should only see the images that I have to change (like the clode button image for the panel or tabs), but not all the rounded corner sprits. Don't you think so ?!?
Last thing, why your theming system is generating so much images ? One of the good thing with Compass is the ability to generate sprites, so why this feature is not used ? For me each image should be a separate file at first and the compilation phase should "merge" all those files in a few sprites files. The way it is done now is not well optimized...
Thanks in advance for your feedback on all this
Best regards
Daniel
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote