Implement shadows in default selector impl
This commit is contained in:
parent
f42b91a80e
commit
1c9fb28ebf
1 changed files with 6 additions and 1 deletions
|
|
@ -755,7 +755,12 @@ namespace psemek::ui
|
||||||
{
|
{
|
||||||
auto st = merged_own_style();
|
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<float>(*st->shadow_offset), *st->shadow_color);
|
||||||
|
|
||||||
|
p.draw_rect(bbox, *st->bg_color);
|
||||||
|
|
||||||
if (auto i = selected())
|
if (auto i = selected())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue