From 77c8a960ad35047ea8279414de56d9c2b27d1483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20ASLIT=C3=9CRK?= Date: Sun, 14 Jun 2020 11:07:02 +0300 Subject: [PATCH] NotificationWindow: Replace Label with Image component to show icons --- Services/NotificationServer/NotificationWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Services/NotificationServer/NotificationWindow.cpp b/Services/NotificationServer/NotificationWindow.cpp index 8f4a1c8b55..35c31e3699 100644 --- a/Services/NotificationServer/NotificationWindow.cpp +++ b/Services/NotificationServer/NotificationWindow.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -90,10 +91,8 @@ NotificationWindow::NotificationWindow(const String& text, const String& title, widget.layout()->set_spacing(6); if (icon.is_valid()) { - auto& icon_label = widget.add(); - icon_label.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed); - icon_label.set_preferred_size(32, 32); - icon_label.set_icon(icon.bitmap()); + auto& image = widget.add(); + image.set_bitmap(icon.bitmap()); } auto& left_container = widget.add();