1 | This sample config and pom.xml file are meant to be a full maven project on
|
---|
2 | their own, and when mvn install or mvn deploy are run, will create and install/
|
---|
3 | deploy a jar file containing a finished theme, as defined by the config file.
|
---|
4 |
|
---|
5 | As invoked in this pom, when the screenshot is taken, it is saved in the
|
---|
6 | target/ folder for later review, as is the manifest file. Similarly, a
|
---|
7 | war/ directory is created, with the compiled css3 sample app that was used to
|
---|
8 | generate the screenshot and manifest. This can be disabled by removing these
|
---|
9 | arguments from the java:exec plugin configuration.
|
---|
10 |
|
---|
11 | The theme file is in this directory, though it probably should be in src/main/resources
|
---|
12 | or the like. The theme file used here is a copy of the quick-start file.
|
---|
13 |
|
---|
14 |
|
---|
15 | Below is a very brief summary/abridged of the config structure.
|
---|
16 | View online documentation for more information.
|
---|
17 |
|
---|
18 | ==== config ===
|
---|
19 | theme {
|
---|
20 | /* First, create a name for your theme, and define a package to place it in */
|
---|
21 | name = "sampletheme"
|
---|
22 | basePackage = "com.example"
|
---|
23 |
|
---|
24 | ...
|
---|
25 |
|
---|
26 | /* Next, configure some basic defaults, to be used throughout the file */
|
---|
27 | text = util.fontStyle("Tahoma, Arial, Verdana, sans-serif", "13px", "#000000", "normal")
|
---|
28 |
|
---|
29 | /* Here we expand on those initial values to prepare them for the main theme */
|
---|
30 | borderColor = headerBgColor
|
---|
31 |
|
---|
32 | ...
|
---|
33 |
|
---|
34 | /* Finally, the theme itself, with a few presets, along with the values used above */
|
---|
35 | details {
|
---|
36 |
|
---|
37 | ...
|
---|
38 |
|
---|
39 | }
|
---|
40 | }
|
---|
41 | ==== config === |
---|