mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
a1f8c10fe5
In order to not resolve the widgets twice, we capture them in ivars.
30 lines
509 B
C++
30 lines
509 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Label.h>
|
|
#include <LibGUI/Widget.h>
|
|
|
|
namespace DisplaySettings {
|
|
|
|
class FontSettingsWidget : public GUI::Widget {
|
|
C_OBJECT(FontSettingsWidget);
|
|
|
|
public:
|
|
virtual ~FontSettingsWidget() override;
|
|
|
|
void apply_settings();
|
|
|
|
private:
|
|
FontSettingsWidget();
|
|
|
|
RefPtr<GUI::Label> m_default_font_label;
|
|
RefPtr<GUI::Label> m_fixed_width_font_label;
|
|
};
|
|
|
|
}
|