1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

WindowServer+DisplaySettings: Remove the weird "simple" wallpaper mode

Painting the wallpaper at 100% scale in the top left corner is a weird
mode and I don't think we need it. :^)
This commit is contained in:
Andreas Kling 2021-05-20 17:49:20 +02:00
parent 3046b3467c
commit 93ef661914
4 changed files with 9 additions and 17 deletions

View file

@ -26,7 +26,6 @@ namespace DisplaySettings {
BackgroundSettingsWidget::BackgroundSettingsWidget()
{
m_modes.append("simple");
m_modes.append("tile");
m_modes.append("center");
m_modes.append("stretch");
@ -96,10 +95,10 @@ void BackgroundSettingsWidget::load_current_settings()
m_monitor_widget->set_wallpaper(selected_wallpaper);
}
auto mode = ws_config->read_entry("Background", "Mode", "simple");
auto mode = ws_config->read_entry("Background", "Mode", "center");
if (!m_modes.contains_slow(mode)) {
warnln("Invalid background mode '{}' in WindowServer config, falling back to 'simple'", mode);
mode = "simple";
warnln("Invalid background mode '{}' in WindowServer config, falling back to 'center'", mode);
mode = "center";
}
m_monitor_widget->set_wallpaper_mode(mode);
m_mode_combo->set_selected_index(m_modes.find_first_index(mode).value_or(0));