Demos: Setup window icon for Mouse demo

The icon was set in the launcher, and the About dialog, but was
missing form the actual window.
This commit is contained in:
Brian Gianforcaro 2020-07-18 14:22:11 -07:00 committed by Andreas Kling
commit 76e34968fa
Notes: sideshowbarker 2024-07-19 04:43:05 +09:00

View file

@ -174,6 +174,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
auto window = GUI::Window::construct();
window->set_title("Mouse button demo");
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-mouse.png"));
window->resize(160, 155);
auto& main_widget = window->set_main_widget<MainFrame>();