summaryrefslogtreecommitdiff
path: root/riscos/theme.h
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-08-08 20:16:17 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-08-08 20:16:17 +0000
commitafa046e1be4d01acdc035fbec2dab530c9e48abe (patch)
tree107f18b3e95d681dc5261b3dae8193cb49004ceb /riscos/theme.h
parent8337acfc7839cde431d4761bbe693f0faa17b741 (diff)
downloadnetsurf-afa046e1be4d01acdc035fbec2dab530c9e48abe.tar.gz
netsurf-afa046e1be4d01acdc035fbec2dab530c9e48abe.tar.bz2
[project @ 2004-08-08 20:16:17 by rjw]
Internal changes for theme handling. Tinct is now an external resource. svn path=/import/netsurf/; revision=1196
Diffstat (limited to 'riscos/theme.h')
-rw-r--r--riscos/theme.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/riscos/theme.h b/riscos/theme.h
index 613da245c..8c06be5fb 100644
--- a/riscos/theme.h
+++ b/riscos/theme.h
@@ -23,18 +23,28 @@
struct toolbar;
struct theme_entry {
- char *name;
- osspriteop_area *sprite_area;
-};
+ char *name; /**< theme name */
+ char *author; /**< theme author */
+ 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 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 */
+ bool default_settings; /**< no theme was loaded, defaults used */
+ struct theme_entry *next; /**< next entry in theme list */
-extern int theme_throbs;
+};
-void ro_theme_load(char *pathname);
+void ro_theme_apply(struct theme_entry *theme);
+struct theme_entry *ro_theme_load(char *pathname);
void ro_theme_create_browser_toolbar(struct gui_window *g);
void ro_theme_create_hotlist_toolbar(void);
int ro_theme_update_toolbar(struct toolbar *toolbar, wimp_w window);
int ro_theme_resize_toolbar(struct toolbar *toolbar, wimp_w window);
struct theme_entry *ro_theme_list(unsigned int *entries);
-void ro_theme_list_free(struct theme_entry *list, unsigned int entries);
+void ro_theme_free(struct theme_entry *theme);
#endif