1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

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
parent a49c794725
commit 76e34968fa

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>();