Some colour fixes and tweaks (marked pane, cursor colours now work).

This commit is contained in:
nicm
2026-06-26 11:36:22 +00:00
parent 19db019e0c
commit 73fd01c986
7 changed files with 38 additions and 11 deletions

View File

@@ -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);