mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibGUI: Desktop, add methods for set background color and wallpaper mode
This commit is contained in:
committed by
Andreas Kling
parent
adf524015a
commit
f88b90f6fd
@@ -54,6 +54,16 @@ void Desktop::did_receive_screen_rect(Badge<WindowServerConnection>, 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));
|
||||
|
||||
Reference in New Issue
Block a user