Network: Make the applet use an alpha channel

This commit is contained in:
Dawid Wolosowicz 2021-04-05 13:52:32 +02:00 committed by Andreas Kling
parent 3f73816316
commit 1f65c2a981
Notes: sideshowbarker 2024-07-18 20:45:55 +09:00

View file

@ -219,9 +219,9 @@ int main(int argc, char* argv[])
auto window = GUI::Window::construct();
window->set_title(name);
window->set_window_type(GUI::WindowType::Applet);
window->set_has_alpha_channel(true);
window->resize(16, 16);
auto& icon = window->set_main_widget<NetworkWidget>(display_notifications);
icon.set_fill_with_background_color(true);
icon.load_from_file("/res/icons/16x16/network.png");
window->resize(16, 16);
window->show();