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

MouseSettings: Convert setting widgets to a failable factory

This commit is contained in:
Karol Kosek 2023-05-09 22:44:43 +02:00 committed by Andreas Kling
parent ab8be9aed5
commit 90819e2d71
6 changed files with 43 additions and 13 deletions

View file

@ -63,15 +63,17 @@ private:
};
class ThemeWidget final : public GUI::SettingsWindow::Tab {
C_OBJECT(ThemeWidget)
C_OBJECT_ABSTRACT(ThemeWidget)
public:
static ErrorOr<NonnullRefPtr<ThemeWidget>> try_create();
virtual ~ThemeWidget() override = default;
virtual void apply_settings() override;
virtual void reset_default_values() override;
private:
ThemeWidget();
ThemeWidget() = default;
ErrorOr<void> setup();
RefPtr<GUI::TableView> m_cursors_tableview;
RefPtr<GUI::ComboBox> m_theme_name_box;