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

DisplaySettings: Propagate errors in ThemesSettingsWidget

This commit is contained in:
implicitfield 2023-02-11 18:29:58 +02:00 committed by Andreas Kling
parent 83eca15e51
commit 9c7dfd4fd4
2 changed files with 44 additions and 18 deletions

View file

@ -17,12 +17,14 @@
namespace DisplaySettings {
class ThemesSettingsWidget final : public GUI::SettingsWindow::Tab {
C_OBJECT(ThemesSettingsWidget);
C_OBJECT_ABSTRACT(ThemesSettingsWidget);
public:
static ErrorOr<NonnullRefPtr<ThemesSettingsWidget>> try_create(bool& background_settings_changed);
virtual void apply_settings() override;
private:
ErrorOr<void> setup_interface();
Vector<Gfx::SystemThemeMetaData> m_themes;
Vector<DeprecatedString> m_theme_names;
Vector<DeprecatedString> m_color_scheme_names;