1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

ClipboardHistory: Make the applet use an alpha channel

This commit is contained in:
Dawid Wolosowicz 2021-04-05 13:51:49 +02:00 committed by Andreas Kling
parent f7184e967e
commit 3f73816316

View file

@ -93,9 +93,9 @@ int main(int argc, char* argv[])
auto applet_window = GUI::Window::construct();
applet_window->set_title("ClipboardHistory");
applet_window->set_window_type(GUI::WindowType::Applet);
applet_window->set_has_alpha_channel(true);
auto& icon = applet_window->set_main_widget<GUI::ImageWidget>();
icon.load_from_file("/res/icons/16x16/edit-copy.png");
icon.set_fill_with_background_color(true);
icon.on_click = [&main_window = *main_window] {
main_window.show();
main_window.move_to_front();