-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Is there something as a themes gallery where you can choose between predefined themes?
For TK 3.6 there is zkThemer available for creating a new color space with just few clicks. Is a compatible tool available for ZK 5.0 as well or will this follow?
However I think a themes gallery would be the best approach.
Thanks, JC
I'd also like a prepackaged theme if anyone has something along those lines. The reason being is that I'm trying to zkThemer and it's just not working. So I'd like to have a go with a prepackaged jar and see if it's something wrong with the jar that's being produced with zkThemer or whether it's some other issue.
I altered the zk.xml to include the lines:
<desktop-config>
<theme-provider-class>zkthemer.ThemeProvider</theme-provider-class>
</desktop-config>
Copied the .jar file over (/WEB-INF/lib), restarted tomcat (just to be sure) and reloaded the page. Absolutely no change. Can't seem to find any error messages though I'm looking at tomcat's logs. I'm not sure where to find zk logs...
I did find this page:
http://www.zkoss.org/doc/devguide/ch19s01s01.html
So added the following to zk.xml:
<zk>
<log>
<log-base>org.zkoss</lob-base>
</log>
</zk>
As well as putting a i3-log.conf file in my $TOMCAT_HOME/conf directory with the following contents:
org.zkoss.zk.ui.impl.UiEngineImpl=FINER
but I'm not sure where it's logging to or if it's even logging. If I make a syntax error in zk and end up with one of those trace screens, they show up the tomcat logs but I can't see any decernible difference between having done those extra steps and not having done those steps.
I also had a go at extracting zul.jar in WEB-INF/lib/classes and changed some of the images in there (and removed zul.jar) but nothing there seemed to make any difference either.
There are some suggestions on problem tracking regarding to ZKThemer from this thread:
http://www.zkoss.org/forum/listComment/12235
1. Extract the jar generated by ZKThemer. Open some image files and check the colors.
2. View the page source of your webpage. If ZKThemer is wired up correctly, you should see two <style> tag rather than one.
Another reason is mentioned by vinhvo:
3. There are some colors that ZKThemer don't generate. If you suspect this possibility, run ZKThemer with an obvious color (i.e. #FF0000) and see if it works.
Regards,
Simon
Hi,
About of "3. There are some colors that ZKThemer don't generate. If you suspect this possibility, run ZKThemer with an obvious color (i.e. #FF0000) and see if it works.". The color red not function correctly.. what's up? How do you function correctly?
Thanks SimonPai,
If I correct the problem let you know,
But you know where I can download the sources? or only compile .class?
hernanjavier,
The source code section of this small talk has the source code available.
Or you can also check out the code from zkforge svn/git.
Regards,
Simon
Asked: 2009-12-19 17:38:49 +0800
Seen: 1,095 times
Last updated: Aug 31 '10