/* * Copyright (c) 2022, MacDue * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace DisplaySettings { class ThemePreviewWidget final : public GUI::AbstractThemePreview { C_OBJECT(ThemePreviewWidget); public: ErrorOr set_theme(String path); private: explicit ThemePreviewWidget(Gfx::Palette const& palette); void paint_preview(GUI::PaintEvent& event) override; }; }