SystemMonitor: Add proper icon to the ProcessState window

This commit is contained in:
thankyouverycool 2022-02-18 05:51:50 -05:00 committed by Andreas Kling
parent 0e56dd4917
commit 9e20d393ac
Notes: sideshowbarker 2024-07-17 18:36:11 +09:00

View File

@ -406,6 +406,9 @@ ErrorOr<NonnullRefPtr<GUI::Window>> build_process_window(pid_t pid)
window->resize(480, 360);
window->set_title(String::formatted("PID {} - System Monitor", pid));
auto app_icon = GUI::Icon::default_icon("app-system-monitor");
window->set_icon(app_icon.bitmap_for_size(16));
auto main_widget = TRY(window->try_set_main_widget<GUI::Widget>());
main_widget->set_fill_with_background_color(true);
main_widget->set_layout<GUI::VerticalBoxLayout>();