mirror of
https://github.com/tmux/tmux.git
synced 2026-10-07 02:04:22 +00:00
Some colour fixes and tweaks (marked pane, cursor colours now work).
This commit is contained in:
12
mode-tree.c
12
mode-tree.c
@@ -832,6 +832,7 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
const char *tag, *separator;
|
||||
size_t n;
|
||||
int keylen, alignlen[mtd->maxdepth + 1];
|
||||
int dfg, dfg0;
|
||||
|
||||
if (mtd->line_size == 0)
|
||||
return;
|
||||
@@ -842,6 +843,9 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
memcpy(&box_gc, &grid_default_cell, sizeof box_gc);
|
||||
style_apply(&box_gc, oo, "tree-mode-border-style", NULL);
|
||||
|
||||
dfg = gc.fg;
|
||||
dfg0 = gc0.fg;
|
||||
|
||||
w = mtd->width;
|
||||
h = mtd->height;
|
||||
|
||||
@@ -927,8 +931,8 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
width = prefix_width + text_width;
|
||||
|
||||
if (mti->tagged) {
|
||||
gc.attr ^= GRID_ATTR_BRIGHT;
|
||||
gc0.attr ^= GRID_ATTR_BRIGHT;
|
||||
gc.fg = COLOUR_THEME_CYAN|COLOUR_FLAG_THEME;
|
||||
gc0.fg = COLOUR_THEME_CYAN|COLOUR_FLAG_THEME;
|
||||
}
|
||||
|
||||
if (i != mtd->current) {
|
||||
@@ -965,8 +969,8 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
free(prefix);
|
||||
|
||||
if (mti->tagged) {
|
||||
gc.attr ^= GRID_ATTR_BRIGHT;
|
||||
gc0.attr ^= GRID_ATTR_BRIGHT;
|
||||
gc.fg = dfg;
|
||||
gc0.fg = dfg0;
|
||||
}
|
||||
}
|
||||
format_free(ft);
|
||||
|
||||
Reference in New Issue
Block a user