mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:55:08 +00:00
LibGUI: Add a way to highlight the focused widget for debugging
You can now pass --gui-focus-debug to any GUI::Application and it will draw a cyan rectangle around the currently focused widget.
This commit is contained in:
parent
e064999e0d
commit
39d55d1d76
3 changed files with 18 additions and 2 deletions
|
@ -56,8 +56,14 @@ Application::Application(int argc, char** argv)
|
|||
WindowServerConnection::the();
|
||||
if (argc > 0)
|
||||
m_invoked_as = argv[0];
|
||||
for (int i = 1; i < argc; i++)
|
||||
m_args.append(argv[i]);
|
||||
for (int i = 1; i < argc; i++) {
|
||||
String arg(argv[i]);
|
||||
|
||||
if (arg == "--gui-focus-debug")
|
||||
m_focus_debugging_enabled = true;
|
||||
|
||||
m_args.append(move(arg));
|
||||
}
|
||||
}
|
||||
|
||||
Application::~Application()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue