From b8cd833cfd34863461737e088305ca24ff37d476 Mon Sep 17 00:00:00 2001
From: John Mark Bell A template editor A sprite file editor A text editor
The best way to go about creating a new theme is to take the templates for the default theme and edit them with a template editor.
-The templates file must contain two templates. One is "toolbar", the other is "theme_info".
+The templates file must contain one template. It should be called "toolbar".
The toolbar template must contain the following icons: +
The toolbar template must contain the following icons, which must be numbered (as indicated in parentheses):
Back Button Refresh Button Forwards Button Throbber URL entry bar Status bar Throbber (1) URL entry bar (2) Status bar (3) Back Button (4) Refresh Button (5)
-
The theme_info template details the theme in a graphical manner. It is similar to a program info dialogue box and should be treated as such. Again, the Default theme is a good source of reference.
-You may optionally provide a preview sprite for display in the theme configuration dialogue box. The sprite must be in a file called "Preview" and the sprite itself must be called "preview".
There are two text files which also make up the theme.
- -The IconNames text file provides the link between the template and the program. Each icon has a name defined internally by NetSurf (eg TOOLBAR_BACK). It is necessary to map these internal names to the icon numbers in the template. See the default theme for reference. All icons should be defined.
-The IconSizes text file is best left alone. Simply copy the one from the default theme into your theme.
-The default packaging for NetSurf themes is simply a folder named the same as your theme name (eg "Clear" for the Clear theme). Simply place all the files for your theme into a single directory, name the directory appropriately and create a Zip archive containing your theme.
@@ -85,6 +67,7 @@