|
|
DaFT ThemesThere is currently 1 theme available. It can be downloaded
from the DaFT project page at Sourceforge.net from here. DaFT has several themes built in
already. InstallationThe theme zip file dows not need to be unzipped. DaFT will take care of it's installation. All you need to do is:
Creating themesCreating a Theme for DaFT is a bit like creating a web page: You have to create or change the GIF images, and define some colors. But there is a difference: DaFT is not written html but in Tcl/Tk. So the widgets (frames, buttons, checkboxes, scrollbars, etc) are created by the Tk toolkit engine. Since DaFT version 1.3.0 most (yes, not all of them :( ) are created with the Tile Tk styling engine (see http://tktable.sourceforge.net/ and http://tktable.sourceforge.net/tile/doc/index.html for documentation on tile). DaFT comes with a set of built-in themes, but it can be extended with "custom" themes. A theme file tells the the tile engine how the tile widgets must look in normal mode, pressed mode, or when the widget is activated, or just what the background and forground colors must be, and which font and size the texts must have. A custom theme for DaFT is basically a tcl/tk package. In order to be easily distributed and mounted by the tclkit
engine, all files must be packaged in a zip file. If we regard the zip
file as a directory, the root of the directory must contain a file with
the name pkgIndex.tcl:
# Package index for Mytheme exampleThis package index file defines a tile theme mytheme 1.0, and refers to the mytheme.tcl fle, which must in this case be located in the same directory, which is the mytheme.zip file. This file will define all colors and shapes of the tile widgets for Mytheme. Note: the zip extension is dropped, as the zip file is a virtual directory to the tclkit engine. So what's in the mytheme.tcl file? Just more tcl code... The code must refer to the Tile package commands and variables. the file mytheme.tcl could look like this. In the tcl file the images directory is set with statement:
An example of the images used in the ITFT theme:
|
Latest Themes:SMOGAdded: 18-AUG-2005![]() Download Example of a theme for DaFT 1.3+ ITFT-1Added: 31-MAY-2005![]() Example of a theme for DaFT
1.3.X
|


































