0

ZK 9 Project - User Defined theme

asked 2020-01-07 21:54:26 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

I have been working in ZK for the past 6 years. I know there are different ways to implement theme in the Project. I wonder any preferred method available to provide the option for the end-user itself to define the color for each component in the project.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-09 11:20:54 +0800

cor3000 gravatar image cor3000
6280 2 7

it depends on how much control you want/need:

For complete flexibility you should base your theme project on the zkThemeTemplate project: https://github.com/zkoss/zkThemeTemplate

If you need to control individual components on different pages, you have to define dedicated style sheets, or assign colors to components individually.

If you have custom component jars, you can provide those styles in your dedicated jars, via language addon.

Since you didn't specify your scenario I can't say THIS or THAT is the way for your project.

link publish delete flag offensive edit

Comments

Ok. I do not want to give too much of control to the user. Assume that, i just want to give control to specify the background/foreground color of label, group box, tab, panel and button for all pages

Senthilchettyin ( 2020-01-09 11:43:49 +0800 )edit

developing a theme is not a user's task, it's the task for the developer of the application.

cor3000 ( 2020-01-09 11:45:25 +0800 )edit

again too complex conversation for a forum. If you have a specific question that can be answered, forum is the right place. If there's a longer conversation involved please contact our support.

cor3000 ( 2020-01-09 11:47:07 +0800 )edit
Your answer
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
1 follower

RSS

Stats

Asked: 2020-01-07 21:54:26 +0800

Seen: 6 times

Last updated: Jan 09 '20

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