Skip to content

Commit

Permalink
Draw white border around previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankata453 committed Jul 16, 2024
1 parent 610a448 commit 8763b68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,11 @@ Menu::draw_preview(DrawingContext& context)
{
PaintStyle style;
style.set_alpha(alpha);
context.color().draw_surface_scaled(preview, preview_rect, LAYER_GUI, style);
context.color().draw_surface_scaled(preview, preview_rect, LAYER_GUI + 1, style);

// Draw a border around the preview.
context.color().draw_filled_rect(preview_rect.grown(2.f),
Color(1.f, 1.f, 1.f, alpha), 2.f, LAYER_GUI);
}

// Draw other data, alongside the preview, if available.
Expand Down

0 comments on commit 8763b68

Please sign in to comment.