Fix create_box boundary fg color

This commit is contained in:
Manos Pitsidianakis 2020-02-22 23:18:56 +02:00
parent c4c11e4abc
commit c88d1cae51
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -2371,13 +2371,21 @@ pub mod boundaries {
if !grid.ascii_drawing { if !grid.ascii_drawing {
for x in get_x(upper_left)..get_x(bottom_right) { for x in get_x(upper_left)..get_x(bottom_right) {
grid[(x, get_y(upper_left))].set_ch(HORZ_BOUNDARY); grid[(x, get_y(upper_left))]
grid[(x, get_y(bottom_right))].set_ch(HORZ_BOUNDARY); .set_ch(HORZ_BOUNDARY)
.set_fg(Color::Byte(240));
grid[(x, get_y(bottom_right))]
.set_ch(HORZ_BOUNDARY)
.set_fg(Color::Byte(240));
} }
for y in get_y(upper_left)..get_y(bottom_right) { for y in get_y(upper_left)..get_y(bottom_right) {
grid[(get_x(upper_left), y)].set_ch(VERT_BOUNDARY); grid[(get_x(upper_left), y)]
grid[(get_x(bottom_right), y)].set_ch(VERT_BOUNDARY); .set_ch(VERT_BOUNDARY)
.set_fg(Color::Byte(240));
grid[(get_x(bottom_right), y)]
.set_ch(VERT_BOUNDARY)
.set_fg(Color::Byte(240));
} }
set_and_join_box(grid, upper_left, BoxBoundary::Horizontal); set_and_join_box(grid, upper_left, BoxBoundary::Horizontal);
set_and_join_box( set_and_join_box(