From e2318dffe37b2abf43b758e8a562f4d981e66104 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Sun, 7 Aug 2022 19:45:33 -0400 Subject: LibGUI: Let Desktop:the() manage SystemEffects inside LibGUI These settings might well ultimately be factored into a dedicated settings manager, but until then, a charitable interpretation of Desktop::the() as the desktop environment will suffice. --- Userland/Libraries/LibGUI/Desktop.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibGUI/Desktop.h b/Userland/Libraries/LibGUI/Desktop.h index 952977997f..2d23ee9e03 100644 --- a/Userland/Libraries/LibGUI/Desktop.h +++ b/Userland/Libraries/LibGUI/Desktop.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -34,6 +35,9 @@ public: RefPtr wallpaper_bitmap() const; bool set_wallpaper(RefPtr wallpaper_bitmap, Optional path); + void set_system_effects(Vector effects) { m_system_effects = { effects }; }; + SystemEffects const& system_effects() const { return m_system_effects; } + Gfx::IntRect rect() const { return m_bounding_rect; } Vector const& rects() const { return m_rects; } size_t main_screen_index() const { return m_main_screen_index; } @@ -59,6 +63,7 @@ private: unsigned m_workspace_columns { 1 }; Vector> m_receive_rects_callbacks; bool m_is_setting_desktop_wallpaper { false }; + SystemEffects m_system_effects; }; } -- cgit v1.2.3