-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, we are preparing to migrate to ZK 9.6, and we need new theme. I have 'light' custom theme created. I cloned https://github.com/zkoss/zkThemeTemplate and created custom theme based on iceblue ZK theme. Now I want to create one additional 'dark' theme. Can I do that in the same project somehow or I have to have separate project for 'dark' theme?
Hey there,
I'd say it depends on the amount of customization that you are doing. When you run init.sh on the project, it will set the theme name and info into a number of places (version files, build file, etc).
That theme id is used internally by ZK to generate unique URLs which will force the client to load the content set for your theme. Due to that, it's really a good idea to keep these names (and URI) exclusive for each of your themes.
This said, if you are planning to have multiple themes using the same structure but slightly different colors, and you have access to the premium download for the ZK theme pack, there is a utility in the theme pack source that lets you build variations on the same themes but with different color palettes.
The src jar contains the buildable project, and instructions on how to build in the readme.md file located at root.
You can find it in the theme back src jar, on maven or in the premium downloads section.
Hi, thanks for support. Yes, I have access to theme pack. Where can I find documentation how to use that ThemePack utility to build variations of the same them based on different color palette? Or should I create ZK support ticket for this?
In other words, I have color pallete variables bellow [ROOT]/src/archive/web/zul/less/colors but I do not know how to build two jars or how to change to dark palette in runtime.
You can find it in the theme back src jar, on maven or in the premium downloads section.
Make sure you download the src jar (not the binaries).
The source jar is just the runnable project which can be used to generate the projects based on swappable palettes. I recommend that you follow the readme included in that project.
The short version is:
you can then either build all themes at once (will generate one theme per palette you created), or build one of the palette. (see readme file for the relevant commands)
-edit- formatting
Asked: 2022-01-10 16:01:46 +0800
Seen: 14 times
Last updated: Jan 12 '22
bug with intboxes on mobile devices
zk keikai-how to add custom button/label to formulabar?
zk-keikai- update multiple cells parallel at same time asynchronously
zk-keikai-How to auto fit column width based on text
zk-keikai-ClipboardPateEvent-called twice
Reference a spring bean from VariableResolver