mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
VisualBuilder: Add GScrollBar (and yes, an icon for it, too.)
This commit is contained in:
parent
f25c524f20
commit
3f67298dad
4 changed files with 11 additions and 0 deletions
|
@ -109,5 +109,12 @@ GWindow* make_toolbox_window()
|
|||
if (auto* form = VBForm::current())
|
||||
form->insert_widget(WidgetType::GCheckBox);
|
||||
};
|
||||
auto* scrollbar_button = new GButton(widget);
|
||||
scrollbar_button->set_tooltip("GScrollBar");
|
||||
scrollbar_button->set_icon(GraphicsBitmap::load_from_file("/res/icons/vbwidgets/scrollbar.png"));
|
||||
scrollbar_button->on_click = [] (GButton&) {
|
||||
if (auto* form = VBForm::current())
|
||||
form->insert_widget(WidgetType::GScrollBar);
|
||||
};
|
||||
return window;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue