mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibGUI+Inspector: Highlight the currently remotely inspected widget
This patch adds a magenta rectangle around the currently inspected widget. This allows you to browse an app's widget tree somewhat visually using the Inspector. :^)
This commit is contained in:
parent
d16f8214d8
commit
e23c5b7e83
Notes:
sideshowbarker
2024-07-19 08:54:01 +09:00
Author: https://github.com/awesomekling
Commit: e23c5b7e83
5 changed files with 29 additions and 0 deletions
|
@ -81,6 +81,7 @@ int main(int argc, char** argv)
|
|||
tree_view.on_activation = [&](auto& index) {
|
||||
auto* remote_object = static_cast<RemoteObject*>(index.internal_data());
|
||||
properties_table_view.set_model(remote_object->property_model());
|
||||
remote_process.set_inspected_object(remote_object->json.get("address").to_number<uintptr_t>());
|
||||
};
|
||||
|
||||
window->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue