mirror of
https://github.com/tmux/tmux.git
synced 2026-10-15 16:04:34 +00:00
Expand colours as formats like styles.
This commit is contained in:
@@ -769,6 +769,15 @@ window_customize_draw_option(struct window_customize_modedata *data,
|
||||
"EXAMPLE"))
|
||||
goto out;
|
||||
}
|
||||
if (oe != NULL && (oe->flags & OPTIONS_TABLE_IS_COLOUR)) {
|
||||
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy), 1,
|
||||
&grid_default_cell, "This is a colour option: "))
|
||||
goto out;
|
||||
style_apply(&gc, item->oo, name, ft);
|
||||
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy), 0, &gc,
|
||||
"EXAMPLE"))
|
||||
goto out;
|
||||
}
|
||||
if (oe != NULL && (oe->flags & OPTIONS_TABLE_IS_STYLE)) {
|
||||
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy), 1,
|
||||
&grid_default_cell, "This is a style option: "))
|
||||
|
||||
Reference in New Issue
Block a user