mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
Add a dim= style attribute to dim the colours (as best as tmux is able
to). GitHub issue 4842.
This commit is contained in:
9
tmux.h
9
tmux.h
@@ -946,6 +946,7 @@ enum style_default_type {
|
||||
struct style {
|
||||
struct grid_cell gc;
|
||||
int ignore;
|
||||
int dim;
|
||||
|
||||
int fill;
|
||||
enum style_align align;
|
||||
@@ -1289,6 +1290,8 @@ struct window_pane {
|
||||
|
||||
struct grid_cell cached_gc;
|
||||
struct grid_cell cached_active_gc;
|
||||
u_int cached_dim;
|
||||
u_int cached_active_dim;
|
||||
struct colour_palette palette;
|
||||
enum client_theme last_theme;
|
||||
struct style_line_entry border_status_line;
|
||||
@@ -1629,6 +1632,7 @@ LIST_HEAD(tty_terms, tty_term);
|
||||
struct tty_style_ctx {
|
||||
const struct grid_cell *defaults;
|
||||
struct colour_palette *palette;
|
||||
u_int dim;
|
||||
struct hyperlinks *hyperlinks;
|
||||
};
|
||||
|
||||
@@ -2720,7 +2724,7 @@ void tty_cmd_reverseindex(struct tty *, const struct tty_ctx *);
|
||||
void tty_cmd_setselection(struct tty *, const struct tty_ctx *);
|
||||
void tty_cmd_rawstring(struct tty *, const struct tty_ctx *);
|
||||
void tty_cmd_syncstart(struct tty *, const struct tty_ctx *);
|
||||
void tty_default_colours(struct grid_cell *, struct window_pane *);
|
||||
void tty_default_colours(struct grid_cell *, struct window_pane *, u_int *);
|
||||
|
||||
/* tty-term.c */
|
||||
extern struct tty_terms tty_terms;
|
||||
@@ -3157,6 +3161,7 @@ int colour_find_rgb(u_char, u_char, u_char);
|
||||
int colour_join_rgb(u_char, u_char, u_char);
|
||||
void colour_split_rgb(int, u_char *, u_char *, u_char *);
|
||||
int colour_force_rgb(int);
|
||||
int colour_dim(int, u_int);
|
||||
const char *colour_tostring(int);
|
||||
enum client_theme colour_totheme(int);
|
||||
int colour_fromstring(const char *);
|
||||
@@ -3806,7 +3811,7 @@ int popup_modify(struct client *, const char *, const char *,
|
||||
int style_parse(struct style *,const struct grid_cell *,
|
||||
const char *);
|
||||
const char *style_tostring(struct style *);
|
||||
void style_add(struct grid_cell *, struct options *,
|
||||
struct style *style_add(struct grid_cell *, struct options *,
|
||||
const char *, struct format_tree *);
|
||||
void style_apply(struct grid_cell *, struct options *,
|
||||
const char *, struct format_tree *);
|
||||
|
||||
Reference in New Issue
Block a user