rewrite: update default dumb and smart prefixes
[elinks/elinks-j605.git] / src / bfu / style.h
blobe9cbb95f9fec7f0b3355e4757dfc3a9ae4f5d547
1 #ifndef EL__BFU_STYLE_H
2 #define EL__BFU_STYLE_H
4 struct color_pair;
5 struct terminal;
7 /** Get suitable BFU color for the specific terminal
9 * Get a color pair (foreground- and background color) for a specific
10 * BFU widget "style". Depending on the terminal settings a color
11 * suitable for either mono terminals or color terminals is returned.
12 * The returned color is derived by looking up the specified stylename
13 * under the option tree of "ui.colors.color" or the "ui.colors.mono",
14 * and using the values of the "text" and "background" color options as
15 * the values of the color pair.
17 * @param term Terminal for which the color will be used.
18 * @param stylename The name of the BFU color.
19 * @return A color pair matching the stylename or NULL.
21 struct color_pair *
22 get_bfu_color(struct terminal *term, unsigned char *stylename);
24 /** Cleanup after the BFU style cache
26 * Free all resources used by the BFU style cache.
28 void done_bfu_colors(void);
30 #endif