diff --git a/libs/ui/source/default_element_factory.cpp b/libs/ui/source/default_element_factory.cpp index 7ee663c7..a4c14745 100644 --- a/libs/ui/source/default_element_factory.cpp +++ b/libs/ui/source/default_element_factory.cpp @@ -755,7 +755,12 @@ namespace psemek::ui { auto st = merged_own_style(); - p.draw_rect(shape().bbox(), *st->bg_color); + auto bbox = shape().bbox(); + + if (st->shadow_offset) + p.draw_rect(bbox + geom::cast(*st->shadow_offset), *st->shadow_color); + + p.draw_rect(bbox, *st->bg_color); if (auto i = selected()) {