PSST Themes
PSST II now supports themes.
By default, PSST uses the 'blackgold' theme, but will give you your
own choice.
Themes are defined by the files in the 'themes' directory where you
have PSST installed. Windows users - if you accepted the defaults,
you'll find these themes in C:\Program Files\PSST-II\themes
To change the theme which PSST uses, click on Edit then
Select Theme. Click on the combo box to select a new theme.
Note, however, that the new theme won't come into effect until you
restart PSST.
Creating Your Own Theme
It's easy to create your own PSST themes.
All you have to do is copy the template.theme file to another
name, say, mytheme.theme. The '.theme' file extension is
compulsory - without this, PSST won't see the file when you select
your new theme.
Once you've created your new theme file from the template, open it
up in your favourite text editor, and hack it to your heart's content.
Note that a theme mostly consists of colour settings, with a few font
settings.
The syntax for colour settings is pretty similar to HTML, where you
can either use a standard colour name like "blue", "red", "white" etc,
or "#RRGGBB", where RR is a 2-digit hexidecimal value for
the amount of red, GG for green, and BB for blue.
My theme doesn't work - PSST keeps loading the "blackgold" theme!
This will happen if there are errors in your theme file.
Possible causes of errors include:
- Illegal colour names - for example, 'paleburgundy' may not be
known
- Bad colour syntax - eg "#blue" (instead of "blue" is
a mistake I've made often
- Not using double quotes. for example,
winBgColor 'blue'
is illegal, while:
winBgColor "blue"
is fine.
All lines in theme script files must either be:
- Empty - containing only whitespace, or
- Comments - beginning with a hash (#) character, or
- In the form:
itemname = "itemcolour"
,
with the quotes
I Need More Themes!
If you cook up a nice theme you'd like to share with other PSST users,
please send it to me. I'll put
it up on the PSST website as a contributed theme, and add your name as
creator (unless you choose to remain anonymous).
Happy Theming!