We will first focus on porting the old theme to the new widgets and new engine, but also plan to offer additional themes. Also it will be a lot easier to change the theme to your own needs.
I am very interested in Sven's comment 'Also it will be a lot easier to change the theme to your own needs.' Can you provide any pointers/info on how this can/should be done? I too need to modify the GXT 3.0 theme, I haven't looked at that yet in detail but it seems it would be hard because each CSS appearance is spread out over each widget's, panel's, etc source code...just finding them all seems like a large task. I would love to hear about how themes can be created in an easy way. Any pointers regarding custom themes would be greatly appreciated.
it would be hard because each CSS appearance is spread out over each widget's, panel's, etc source code...just finding them all seems like a large task.
They are all in the same package, so it should be very easy to find them. You also directly know which css belongs to which widget and where the classnames gets used, because everything is typed.
Well everything for the blue theme is in com.sencha.gxt.theme.blue but that package has tons of sub-packages if I'm not mistaken. So if my goal was to make a custom theme would I start my copying the entire com.sencha.gxt.theme.blue folder into my custom package name, then modify each CSS & Class and then create my own theme GWT module? Then since GXT themes make references to the base code/theme I wasn't sure if my custom theme can reference that? Mine would be in my jar...can mine reference the base CSS in the GXT jar? E.g. the @Source directives.
If you only want to change the colors, than you should extend base. If you want like to create something completely knew, i would start from scratch using only the interfaces.
Well everything for the blue theme is in com.sencha.gxt.theme.blue but that package has tons of sub-packages if I'm not mistaken
That should still much more easy than debugging the correct styles using firebug, understand over 100kb of css in a single file and changing the styling.
I'm confused. Are you saying my approach is right if I just want to change colors?
However if I also need to customize what's in base I should just start from scratch?
IMHO, your probably right the 'appearance' pattern is easier to customize but it also seems more complex...hard to know how to get started. I'd sure like to see a whitepaper or something on the recommended approach for customizing GXT themes...both just changing colors and creating something new.