Artifact be42c1cdac9f4da896447ea88d90cce2b8fe7e46:
- File skins/README.md — part of check-in [5137cd5e88] at 2015-01-22 01:57:39 on branch skins-refactor — Add the skins/README.md file describing how to add new skins. (user: drh size: 986) [more...]
Built-in Skins
Each subdirectory under this folder describes a built-in "skin". There are three files in each subdirectory for the CSS, the header, and the footer for the skin.
To improve an existing built-in skin, simply edit the appropriate files and recompile.
To add a new skin:
Create a new subdirectory under skins/. (The new directory is called "skins/newskin" below but you should use a new original name, of course.)
Add files skins/newskin/css.txt, skins/newskin/header.txt, and skins/newskin/footer.txt. Be sure to "fossil add" these files.
Go to the src/ directory and rerun "tclsh makemake.tcl". This step rebuilds the various makefiles so that they have dependencies on the skin files you just installed.
Edit the BuiltinSkin[] array near the top of the src/skins.c source file so that it describes and references the "newskin" skin.
Type "make" to rebuild.