2021-05-21 19:55:30 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2022-02-10 22:28:48 +03:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-05-21 19:55:30 +03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-05-23 18:14:22 +03:00
|
|
|
#include <LibGUI/Label.h>
|
2021-11-20 18:28:46 +03:00
|
|
|
#include <LibGUI/SettingsWindow.h>
|
2021-05-21 19:55:30 +03:00
|
|
|
|
|
|
|
namespace DisplaySettings {
|
|
|
|
|
2021-11-20 18:28:46 +03:00
|
|
|
class FontSettingsWidget final : public GUI::SettingsWindow::Tab {
|
2023-02-11 20:14:20 +03:00
|
|
|
C_OBJECT_ABSTRACT(FontSettingsWidget);
|
2021-05-21 19:55:30 +03:00
|
|
|
|
|
|
|
public:
|
2023-02-11 20:14:20 +03:00
|
|
|
static ErrorOr<NonnullRefPtr<FontSettingsWidget>> try_create();
|
2022-02-10 22:28:48 +03:00
|
|
|
virtual ~FontSettingsWidget() override = default;
|
2021-05-21 19:55:30 +03:00
|
|
|
|
2021-11-20 18:28:46 +03:00
|
|
|
virtual void apply_settings() override;
|
2021-05-21 19:55:30 +03:00
|
|
|
|
|
|
|
private:
|
2023-02-11 20:14:20 +03:00
|
|
|
FontSettingsWidget() = default;
|
|
|
|
ErrorOr<void> setup_interface();
|
2021-05-23 18:14:22 +03:00
|
|
|
|
|
|
|
RefPtr<GUI::Label> m_default_font_label;
|
2022-07-31 19:41:07 +03:00
|
|
|
RefPtr<GUI::Label> m_window_title_font_label;
|
2021-05-23 18:14:22 +03:00
|
|
|
RefPtr<GUI::Label> m_fixed_width_font_label;
|
2021-05-21 19:55:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|