diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-31 21:16:09 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-31 21:16:09 +0000 |
commit | b82d10ca57899ec8c2b98f1816988c3edb33ca37 (patch) | |
tree | 41152341969e9191ffcc1ca894da57323f32dbe6 /src/fe-common/core/themes.h | |
parent | 138079e3bdcadaf163381fa9408609bb40f045ad (diff) | |
download | irssi-b82d10ca57899ec8c2b98f1816988c3edb33ca37.zip |
Theme fixes: /RELOAD reloads them, /SET current_theme changes the default
theme, you can have window specific themes with /WINDOW THEME.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@561 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/themes.h')
-rw-r--r-- | src/fe-common/core/themes.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/fe-common/core/themes.h b/src/fe-common/core/themes.h index 5b5331f8..49c29138 100644 --- a/src/fe-common/core/themes.h +++ b/src/fe-common/core/themes.h @@ -3,10 +3,6 @@ #include "printtext.h" -#define THEME_FLAG_BG_SCROLLABLE 0x0001 -#define THEME_FLAG_BG_SCALED 0x0002 -#define THEME_FLAG_BG_SHADED 0x0004 - typedef struct { char *name; @@ -19,13 +15,9 @@ typedef struct { char *name; int default_color; - char *bg_pixmap; - char *font; - int flags; - GHashTable *modules; - gpointer gui_data; + void *gui_data; } THEME_REC; extern GSList *themes; @@ -35,6 +27,8 @@ extern GHashTable *default_formats; THEME_REC *theme_create(const char *path, const char *name); void theme_destroy(THEME_REC *rec); +THEME_REC *theme_load(const char *name); + #define theme_register(formats) theme_register_module(MODULE_NAME, formats) #define theme_unregister() theme_unregister_module(MODULE_NAME) void theme_register_module(const char *module, FORMAT_REC *formats); |