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

BrowserSettings: Create a BrowserSettings application :^)

Browser has a bunch of settings, but most are non-trivial to add here.
So far, these are implemented:

- Homepage URL
- Whether to close download windows when they complete

The others will be added in subsequent commits.
This commit is contained in:
Sam Atkins 2021-11-24 16:47:39 +00:00 committed by Andreas Kling
parent 16ee8ebc04
commit 8a284be5c7
8 changed files with 272 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/*
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/CheckBox.h>
#include <LibGUI/SettingsWindow.h>
#include <LibGUI/TextBox.h>
class BrowserSettingsWidget final : public GUI::SettingsWindow::Tab {
C_OBJECT(BrowserSettingsWidget)
public:
virtual ~BrowserSettingsWidget() override;
virtual void apply_settings() override;
private:
BrowserSettingsWidget();
RefPtr<GUI::TextBox> m_homepage_url_textbox;
RefPtr<GUI::CheckBox> m_auto_close_download_windows_checkbox;
};