1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +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:
Andreas Kling 2020-05-12 15:47:13 +02:00
parent e064999e0d
commit 39d55d1d76
3 changed files with 18 additions and 2 deletions

View file

@ -68,6 +68,8 @@ public:
void set_system_palette(SharedBuffer&);
bool focus_debugging_enabled() const { return m_focus_debugging_enabled; }
private:
OwnPtr<Core::EventLoop> m_event_loop;
RefPtr<MenuBar> m_menubar;
@ -77,6 +79,7 @@ private:
class TooltipWindow;
RefPtr<TooltipWindow> m_tooltip_window;
bool m_quit_when_last_window_deleted { true };
bool m_focus_debugging_enabled { false };
String m_invoked_as;
Vector<String> m_args;
};