mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
WindowServer: Fix typo (backgound_color => background_color)
This commit is contained in:
parent
47f413c47f
commit
a9f6f862e2
4 changed files with 4 additions and 4 deletions
|
@ -326,7 +326,7 @@ void ClientConnection::handle(const Messages::WindowServer::AsyncSetWallpaper& m
|
||||||
|
|
||||||
OwnPtr<Messages::WindowServer::SetBackgroundColorResponse> ClientConnection::handle(const Messages::WindowServer::SetBackgroundColor& message)
|
OwnPtr<Messages::WindowServer::SetBackgroundColorResponse> ClientConnection::handle(const Messages::WindowServer::SetBackgroundColor& message)
|
||||||
{
|
{
|
||||||
Compositor::the().set_backgound_color(message.background_color());
|
Compositor::the().set_background_color(message.background_color());
|
||||||
return make<Messages::WindowServer::SetBackgroundColorResponse>();
|
return make<Messages::WindowServer::SetBackgroundColorResponse>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -317,7 +317,7 @@ void Compositor::invalidate(const Gfx::Rect& a_rect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Compositor::set_backgound_color(const String& background_color)
|
bool Compositor::set_background_color(const String& background_color)
|
||||||
{
|
{
|
||||||
auto& wm = WindowManager::the();
|
auto& wm = WindowManager::the();
|
||||||
wm.wm_config()->write_entry("Background", "Color", background_color);
|
wm.wm_config()->write_entry("Background", "Color", background_color);
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
|
|
||||||
bool set_resolution(int desired_width, int desired_height);
|
bool set_resolution(int desired_width, int desired_height);
|
||||||
|
|
||||||
bool set_backgound_color(const String& background_color);
|
bool set_background_color(const String& background_color);
|
||||||
|
|
||||||
bool set_wallpaper_mode(const String& mode);
|
bool set_wallpaper_mode(const String& mode);
|
||||||
|
|
||||||
|
|
|
@ -1284,7 +1284,7 @@ bool WindowManager::update_theme(String theme_path, String theme_name)
|
||||||
ASSERT(new_theme);
|
ASSERT(new_theme);
|
||||||
Gfx::set_system_theme(*new_theme);
|
Gfx::set_system_theme(*new_theme);
|
||||||
m_palette = Gfx::PaletteImpl::create_with_shared_buffer(*new_theme);
|
m_palette = Gfx::PaletteImpl::create_with_shared_buffer(*new_theme);
|
||||||
Compositor::the().set_backgound_color(palette().desktop_background().to_string());
|
Compositor::the().set_background_color(palette().desktop_background().to_string());
|
||||||
HashTable<ClientConnection*> notified_clients;
|
HashTable<ClientConnection*> notified_clients;
|
||||||
for_each_window([&](Window& window) {
|
for_each_window([&](Window& window) {
|
||||||
if (window.client()) {
|
if (window.client()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue