0

Themes + ZK 5.0

asked 2009-12-19 17:38:49 +0800

haddorp gravatar image haddorp
81 2 3

updated 2009-12-28 13:31:25 +0800

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

delete flag offensive retag edit

10 Replies

Sort by ยป oldest newest

answered 2010-05-27 19:43:51 +0800

nevyn gravatar image nevyn
159 2

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.

link publish delete flag offensive edit

answered 2010-05-27 20:11:42 +0800

SimonPai gravatar image SimonPai
1696 1

Hi nevyn,

On which part does ZK Themer break? Did it give an error message?
Did you modified your zk.xml?

Regards,
Simon

link publish delete flag offensive edit

answered 2010-05-27 20:56:41 +0800

nevyn gravatar image nevyn
159 2

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.

link publish delete flag offensive edit

answered 2010-06-02 14:38:47 +0800

vinhvo gravatar image vinhvo
369 3

AS a matter of fact, ZKthemer was just a hack. You can not create color like red or orange red. I manually used Gimp to edit color of generated images :(

link publish delete flag offensive edit

answered 2010-06-02 23:56:57 +0800

SimonPai gravatar image SimonPai
1696 1

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

link publish delete flag offensive edit

answered 2010-08-26 11:00:35 +0800

hernanjavier gravatar image hernanjavier
9

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?

link publish delete flag offensive edit

answered 2010-08-26 11:21:16 +0800

SimonPai gravatar image SimonPai
1696 1

hernanjavier,

I think it is due to how ZK Themer maps the colors. You will have to look into the source code to figure it out.

Regards,
Simon

link publish delete flag offensive edit

answered 2010-08-27 01:49:49 +0800

vinhvo gravatar image vinhvo
369 3

And nobody ever succeeded.... If you can make it , please help the rest of us .

link publish delete flag offensive edit

answered 2010-08-31 00:51:19 +0800

hernanjavier gravatar image hernanjavier
9

updated 2010-08-31 00:51:43 +0800

Thanks SimonPai,
If I correct the problem let you know,
But you know where I can download the sources? or only compile .class?

link publish delete flag offensive edit

answered 2010-08-31 01:21:21 +0800

SimonPai gravatar image SimonPai
1696 1

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-12-19 17:38:49 +0800

Seen: 1,095 times

Last updated: Aug 31 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More