1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-16 10:07:38 +00:00

VisualBuilder: Add the first VBWidget subclass: VBButtonWidget. :^)

This commit is contained in:
Andreas Kling 2019-04-11 02:49:10 +02:00
parent d73f79a2d2
commit ead6524c0a
8 changed files with 73 additions and 11 deletions

View file

@ -56,10 +56,4 @@ void VBWidget::paint(GPainter& painter)
{
painter.fill_rect(m_rect, Color::White);
painter.draw_rect(m_rect, Color::Black);
if (is_selected()) {
for_each_direction([&] (Direction direction) {
painter.fill_rect(grabber_rect(direction), Color::Black);
});
}
}