1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

WindowServer+DisplaySettings: Capitalize display mode dropdown

Every other dropdown in settings is capitalized apart from this one.
This commit fixes that.
This commit is contained in:
James Bellamy 2022-08-21 20:39:54 +01:00 committed by Andreas Kling
parent b0eabae52e
commit 352d6545a9
4 changed files with 11 additions and 11 deletions

View file

@ -33,11 +33,11 @@ Compositor& Compositor::the()
static WallpaperMode mode_to_enum(String const& name)
{
if (name == "tile")
if (name == "Tile")
return WallpaperMode::Tile;
if (name == "stretch")
if (name == "Stretch")
return WallpaperMode::Stretch;
if (name == "center")
if (name == "Center")
return WallpaperMode::Center;
return WallpaperMode::Center;
}
@ -139,7 +139,7 @@ void Compositor::did_construct_window_manager(Badge<WindowManager>)
m_current_window_stack = &wm.current_window_stack();
m_wallpaper_mode = mode_to_enum(wm.config()->read_entry("Background", "Mode", "center"));
m_wallpaper_mode = mode_to_enum(wm.config()->read_entry("Background", "Mode", "Center"));
m_custom_background_color = Color::from_string(wm.config()->read_entry("Background", "Color", ""));
invalidate_screen();