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:
parent
d73f79a2d2
commit
ead6524c0a
8 changed files with 73 additions and 11 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue