diff --git a/Base/res/icons/16x16/layout.png b/Base/res/icons/16x16/layout.png new file mode 100644 index 0000000000..9c2b605961 Binary files /dev/null and b/Base/res/icons/16x16/layout.png differ diff --git a/DevTools/Inspector/RemoteObjectGraphModel.cpp b/DevTools/Inspector/RemoteObjectGraphModel.cpp index b5d6db23d0..aed1bd5b57 100644 --- a/DevTools/Inspector/RemoteObjectGraphModel.cpp +++ b/DevTools/Inspector/RemoteObjectGraphModel.cpp @@ -37,6 +37,7 @@ RemoteObjectGraphModel::RemoteObjectGraphModel(RemoteProcess& process) { m_object_icon.set_bitmap_for_size(16, Gfx::Bitmap::load_from_file("/res/icons/16x16/inspector-object.png")); m_window_icon.set_bitmap_for_size(16, Gfx::Bitmap::load_from_file("/res/icons/16x16/window.png")); + m_layout_icon.set_bitmap_for_size(16, Gfx::Bitmap::load_from_file("/res/icons/16x16/layout.png")); } RemoteObjectGraphModel::~RemoteObjectGraphModel() @@ -100,6 +101,8 @@ GUI::Variant RemoteObjectGraphModel::data(const GUI::ModelIndex& index, Role rol if (role == Role::Icon) { if (remote_object->class_name == "Window") return m_window_icon; + if (remote_object->class_name.ends_with("Layout")) + return m_layout_icon; return m_object_icon; } if (role == Role::Display) { diff --git a/DevTools/Inspector/RemoteObjectGraphModel.h b/DevTools/Inspector/RemoteObjectGraphModel.h index 007b6861f7..374416c49d 100644 --- a/DevTools/Inspector/RemoteObjectGraphModel.h +++ b/DevTools/Inspector/RemoteObjectGraphModel.h @@ -57,4 +57,5 @@ private: GIcon m_object_icon; GIcon m_window_icon; + GIcon m_layout_icon; };