mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 19:47:34 +00:00
HackStudio: Unbreak the form editor's widget icons
This is breakage from the GFoo => GUI::Foo rename.
This commit is contained in:
parent
25b987ce4c
commit
0bb4111735
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ int main(int argc, char** argv)
|
||||||
form_widgets_toolbar->add_action(cursor_tool_action);
|
form_widgets_toolbar->add_action(cursor_tool_action);
|
||||||
|
|
||||||
GUI::WidgetClassRegistration::for_each([&](const GUI::WidgetClassRegistration& reg) {
|
GUI::WidgetClassRegistration::for_each([&](const GUI::WidgetClassRegistration& reg) {
|
||||||
auto icon_path = String::format("/res/icons/widgets/%s.png", reg.class_name().characters());
|
auto icon_path = String::format("/res/icons/widgets/G%s.png", reg.class_name().characters());
|
||||||
auto action = GUI::Action::create(reg.class_name(), Gfx::Bitmap::load_from_file(icon_path), [®](auto&) {
|
auto action = GUI::Action::create(reg.class_name(), Gfx::Bitmap::load_from_file(icon_path), [®](auto&) {
|
||||||
g_form_editor_widget->set_tool(make<WidgetTool>(*g_form_editor_widget, reg));
|
g_form_editor_widget->set_tool(make<WidgetTool>(*g_form_editor_widget, reg));
|
||||||
auto widget = reg.construct(&g_form_editor_widget->form_widget());
|
auto widget = reg.construct(&g_form_editor_widget->form_widget());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue