diff --git a/Libraries/LibGUI/Desktop.cpp b/Libraries/LibGUI/Desktop.cpp index 88f00cbb201..7fbe91aae68 100644 --- a/Libraries/LibGUI/Desktop.cpp +++ b/Libraries/LibGUI/Desktop.cpp @@ -54,6 +54,16 @@ void Desktop::did_receive_screen_rect(Badge, const Gfx:: on_rect_change(rect); } +void Desktop::set_background_color(const StringView& background_color) +{ + WindowServerConnection::the().post_message(Messages::WindowServer::SetBackgroundColor(background_color)); +} + +void Desktop::set_wallpaper_mode(const StringView& mode) +{ + WindowServerConnection::the().post_message(Messages::WindowServer::SetWallpaperMode(mode)); +} + bool Desktop::set_wallpaper(const StringView& path) { WindowServerConnection::the().post_message(Messages::WindowServer::AsyncSetWallpaper(path)); diff --git a/Libraries/LibGUI/Desktop.h b/Libraries/LibGUI/Desktop.h index fd2dd586647..e6b041a1569 100644 --- a/Libraries/LibGUI/Desktop.h +++ b/Libraries/LibGUI/Desktop.h @@ -38,6 +38,10 @@ public: static Desktop& the(); Desktop(); + void set_background_color(const StringView& background_color); + + void set_wallpaper_mode(const StringView& mode); + String wallpaper() const; bool set_wallpaper(const StringView& path);