mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
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
This commit is contained in:
parent
138079e3bd
commit
b82d10ca57
8 changed files with 231 additions and 118 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue