diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-09-07 23:05:34 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-09-07 23:05:34 +0000 |
commit | 289cca466d9eae24c88415834758c6392e86e3b6 (patch) | |
tree | 9d0f50d4a8a8743a25c0bb52e36198661ebeb161 /riscos/theme.h | |
parent | 101c87958dfeb769c697136d221a2a1c63929e65 (diff) | |
download | netsurf-289cca466d9eae24c88415834758c6392e86e3b6.tar.gz netsurf-289cca466d9eae24c88415834758c6392e86e3b6.tar.bz2 |
[project @ 2004-09-07 23:05:34 by rjw]
Updates for new theme format along with a few minor bug fixes.
svn path=/import/netsurf/; revision=1269
Diffstat (limited to 'riscos/theme.h')
-rw-r--r-- | riscos/theme.h | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/riscos/theme.h b/riscos/theme.h index c0c2394dc..1ab6793e3 100644 --- a/riscos/theme.h +++ b/riscos/theme.h @@ -19,15 +19,14 @@ typedef enum { THEME_HOTLIST_TOOLBAR } toolbar_type; +struct toolbar_icon; -struct toolbar_icon { - int icon_number; /**< wimp icon number */ - bool display; /**< whether to display the icon */ - int width; /**< icon width */ - int height; /**< icon height */ - char name[12]; /**< icon name */ - char validation[40]; /**< validation string */ - struct toolbar_icon *next; /**< next toolbar icon, or NULL for no more */ +struct theme { + osspriteop_area *sprite_area; /**< sprite area for theme */ + int throbber_width; /**< width of the throbber */ + int throbber_height; /**< height of the throbber */ + int throbber_frames; /**< frames of animation for the throbber */ + int users; /**< number of users for the theme */ }; struct toolbar { @@ -47,28 +46,21 @@ struct toolbar { char *throbber_buffer; /**< buffer for status text (read only) */ char *status_buffer; /**< buffer for status text (read only) */ struct toolbar_icon *icon; /**< first toolbar icon (read only) */ - struct theme *theme; /**< themem or NULL for no theme (read only) */ + struct theme_descriptor *descriptor; /**< theme descriptor (read only) */ toolbar_type type; /**< toolbar type (read only) */ }; - -struct theme { - char *details; /**< theme details */ - char *author; /**< theme author */ - osspriteop_area *sprite_area; /**< sprite area for theme */ - bool throbber_right; /**< throbber is on the right (left otherwise) */ - int throbber_width; /**< width of the throbber */ - int throbber_height; /**< height of the throbber */ - int throbber_frames; /**< frames of animation for the throbber */ +struct theme_descriptor { + char *filename; /**< theme filename (leaf only) */ + char name[32]; /**< theme name */ + char author[64]; /**< theme author */ int browser_background; /**< background colour of browser toolbar */ int hotlist_background; /**< background colour of hotlist toolbar */ int status_background; /**< background colour of status window */ int status_foreground; /**< colour of status window text */ - int users; /**< number of users for the theme */ -}; - -struct theme_descriptor { - char *filename; /**< theme filename */ + bool throbber_right; /**< throbber is on the right (left otherwise) */ + unsigned int decompressed_size; /**< decompressed sprite size */ + unsigned int compressed_size; /**< compressed sprite size */ struct theme *theme; /**< corresponding theme (must be opened) */ struct theme_descriptor *previous; /**< previous descriptor in the list */ struct theme_descriptor *next; /**< next descriptor in the list */ |