diff --git a/Base/res/icons/16x16/move.png b/Base/res/icons/16x16/move.png new file mode 100644 index 0000000000..6a2f3cd580 Binary files /dev/null and b/Base/res/icons/16x16/move.png differ diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index d0eaa7a603..ae1840ffe5 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/Userland/Services/WindowServer/Window.cpp @@ -74,6 +74,14 @@ static Gfx::Bitmap& pin_icon() return *s_icon; } +static Gfx::Bitmap& move_icon() +{ + static RefPtr s_icon; + if (!s_icon) + s_icon = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/move.png").release_value_but_fixme_should_propagate_errors(); + return *s_icon; +} + Window::Window(Core::Object& parent, WindowType type) : Core::Object(&parent) , m_type(type) @@ -795,6 +803,7 @@ void Window::ensure_window_menu() auto move_item = make(*m_window_menu, (unsigned)WindowMenuAction::Move, "&Move"); m_window_menu_move_item = move_item.ptr(); + m_window_menu_move_item->set_icon(&move_icon()); m_window_menu->add_item(move(move_item)); m_window_menu->add_item(make(*m_window_menu, MenuItem::Type::Separator));