From 3b682e885e492e24aef952050998a2cf1a83f16e Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 5 Jan 2023 16:52:01 +0000 Subject: [PATCH] GMLPlayground: Fill preview window with background color Without this, the "Widget not registered" error stays visible if the widgets defined by the GML do not themselves fill with their background color. Also tidied up some unused includes. --- Userland/DevTools/GMLPlayground/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Userland/DevTools/GMLPlayground/main.cpp b/Userland/DevTools/GMLPlayground/main.cpp index ee79af0b3a..34927eb0a8 100644 --- a/Userland/DevTools/GMLPlayground/main.cpp +++ b/Userland/DevTools/GMLPlayground/main.cpp @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -28,8 +27,6 @@ #include #include #include -#include -#include namespace { @@ -95,6 +92,7 @@ ErrorOr serenity_main(Main::Arguments arguments) preview_window->set_title("Preview - GML Playground"); preview_window->set_icon(app_icon.bitmap_for_size(16)); auto preview_window_widget = TRY(preview_window->try_set_main_widget()); + preview_window_widget->set_fill_with_background_color(true); GUI::Widget* preview = preview_frame_widget;