From b8cd833cfd34863461737e088305ca24ff37d476 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 23 Nov 2003 18:08:07 +0000 Subject: [project @ 2003-11-23 18:08:07 by jmb] Bring themes documentation in line with code. svn path=/import/netsurf/; revision=422 --- documentation/Themes.xml | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) (limited to 'documentation') diff --git a/documentation/Themes.xml b/documentation/Themes.xml index 12c304a91..2c49a8d5a 100644 --- a/documentation/Themes.xml +++ b/documentation/Themes.xml @@ -2,7 +2,7 @@ - + @@ -16,7 +16,6 @@

A template editor

A sprite file editor

-

A text editor

@@ -24,23 +23,18 @@

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.

-
@@ -54,18 +48,6 @@

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 @@ + \ No newline at end of file -- cgit v1.2.3