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:
parent
ab8be9aed5
commit
90819e2d71
6 changed files with 43 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue