mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibGUI: Add GUI_HOVER_DEBUG runtime debugging flag (environment)
You can now see the outline of GUI widgets when hovering them. For example: $ export GUI_HOVER_DEBUG=1 $ FileManager Then move the mouse around in the file manager. :^)
This commit is contained in:
parent
3d4f93cf8d
commit
b3d27c2340
5 changed files with 16 additions and 0 deletions
|
@ -54,6 +54,7 @@ public:
|
|||
void set_system_palette(Core::AnonymousBuffer&);
|
||||
|
||||
bool focus_debugging_enabled() const { return m_focus_debugging_enabled; }
|
||||
bool hover_debugging_enabled() const { return m_hover_debugging_enabled; }
|
||||
bool dnd_debugging_enabled() const { return m_dnd_debugging_enabled; }
|
||||
|
||||
Core::EventLoop& event_loop() { return *m_event_loop; }
|
||||
|
@ -102,6 +103,7 @@ private:
|
|||
WeakPtr<Window> m_active_window;
|
||||
bool m_quit_when_last_window_deleted { true };
|
||||
bool m_focus_debugging_enabled { false };
|
||||
bool m_hover_debugging_enabled { false };
|
||||
bool m_dnd_debugging_enabled { false };
|
||||
String m_invoked_as;
|
||||
Vector<String> m_args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue