summaryrefslogtreecommitdiff
path: root/src/fe-common/core/themes.h
diff options
context:
space:
mode:
authorAilin Nemui <ailin@esf51.localdomain>2014-01-09 15:20:29 +0100
committerAilin Nemui <ailin@esf51.localdomain>2014-06-30 02:41:34 +0200
commit96a292d40e7f6fe505c4a0f686d35132ffac8208 (patch)
tree6f101c12381cbf47b19ce85499a81435a1d9f4f6 /src/fe-common/core/themes.h
parent2d4edc51877719c49d712271967313310f4796fb (diff)
downloadirssi-96a292d40e7f6fe505c4a0f686d35132ffac8208.zip
Finish 256 colour support for Irssi
256 colour patch is cleaned up and the remaining cases are made work, this includes especially Theme support, which was not implemented before. Changes not related to colours were reverted again, making a review of the two patches against master easier to follow. As a byproduct of the Hex-colour code parser, the 24bit colours are also implemented. Actually using them in the terminal is guarded by a compile time switch (as well as a run time switch), as it breaks the existing colour protocol and requires additional storage. To make a seamless usage, down-conversion is provided for 8 and 16 colours. Diverging from Tom's approach, the colour protocol is reverted back to the original one. Unfortunately, the changes required in the Theme engine will break the API. For more details, please refer to the patch documentation at either http://irssi-docs.wikispaces.com/Notes-256-Colour or https://github.com/shabble/irssi-docs/wiki/Notes-256-Colour
Diffstat (limited to 'src/fe-common/core/themes.h')
-rw-r--r--src/fe-common/core/themes.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fe-common/core/themes.h b/src/fe-common/core/themes.h
index dcdea0fc..31cfe943 100644
--- a/src/fe-common/core/themes.h
+++ b/src/fe-common/core/themes.h
@@ -57,10 +57,14 @@ void theme_set_default_abstract(const char *key, const char *value);
#define EXPAND_FLAG_ROOT 0x10
#define EXPAND_FLAG_LASTCOLOR_ARG 0x20
+typedef struct {
+ char m[8];
+} theme_rm_col;
+
char *theme_format_expand(THEME_REC *theme, const char *format);
char *theme_format_expand_data(THEME_REC *theme, const char **format,
- char default_fg, char default_bg,
- char *save_last_fg, char *save_last_bg,
+ theme_rm_col default_fg, theme_rm_col default_bg,
+ theme_rm_col *save_last_fg, theme_rm_col *save_last_bg,
int flags);
void themes_reload(void);