mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Make border color a color from the color table
This commit is contained in:
parent
f106fd5b67
commit
71eca89356
1 changed files with 3 additions and 7 deletions
|
|
@ -322,7 +322,7 @@ struct attr {
|
|||
};
|
||||
struct color_scheme {
|
||||
struct terminal_color palette[16];
|
||||
struct terminal_color border;
|
||||
char border;
|
||||
struct attr default_attr;
|
||||
};
|
||||
|
||||
|
|
@ -689,7 +689,7 @@ struct color_scheme DEFAULT_COLORS = {
|
|||
{0.33, 1, 1, 1}, /* high cyan */
|
||||
{1, 1, 1, 1} /* white */
|
||||
},
|
||||
{0, 0, 0, 1}, /* black border */
|
||||
0, /* black border */
|
||||
{7, 0, 0, } /* bg:black (0), fg:light gray (7) */
|
||||
};
|
||||
|
||||
|
|
@ -729,11 +729,7 @@ terminal_draw_contents(struct terminal *terminal)
|
|||
surface = display_create_surface(terminal->display, &allocation);
|
||||
cr = cairo_create(surface);
|
||||
cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_set_source_rgba(cr,
|
||||
terminal->color_scheme->border.r,
|
||||
terminal->color_scheme->border.g,
|
||||
terminal->color_scheme->border.b,
|
||||
terminal->color_scheme->border.a);
|
||||
terminal_set_color(terminal, cr, terminal->color_scheme->border);
|
||||
cairo_paint(cr);
|
||||
|
||||
cairo_set_font_face(cr, terminal->font_normal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue