/* * Copyright (c) 2022, MacDue * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include "ThemePreviewWidget.h" namespace DisplaySettings { class ThemesSettingsWidget final : public GUI::SettingsWindow::Tab { C_OBJECT(ThemesSettingsWidget); public: virtual void apply_settings() override; private: Vector m_themes; Vector m_theme_names; RefPtr m_themes_combo; RefPtr m_theme_preview; Gfx::SystemThemeMetaData const* m_selected_theme { nullptr }; RefPtr m_cursor_themes_button; bool& m_background_settings_changed; ThemesSettingsWidget(bool& background_settings_changed); }; }