mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
806a55eda1
This patch introduces error propagation to Gfx::SystemTheme to remove instances of release_value_but_fixme_should_propagate_errors(). Userland applications that have been affected by this change have been updated to utilise this propagation and as a result 4 such instances of the aforementioned method have been removed.
30 lines
602 B
C++
30 lines
602 B
C++
/*
|
|
* Copyright (c) 2022, MacDue <macdue@dueutil.tech>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/AbstractThemePreview.h>
|
|
#include <LibGUI/Widget.h>
|
|
#include <LibGfx/Bitmap.h>
|
|
#include <LibGfx/Palette.h>
|
|
#include <LibGfx/WindowTheme.h>
|
|
|
|
namespace DisplaySettings {
|
|
|
|
class ThemePreviewWidget final : public GUI::AbstractThemePreview {
|
|
C_OBJECT(ThemePreviewWidget);
|
|
|
|
public:
|
|
ErrorOr<void> set_theme(DeprecatedString path);
|
|
|
|
private:
|
|
explicit ThemePreviewWidget(Gfx::Palette const& palette);
|
|
|
|
void paint_preview(GUI::PaintEvent& event) override;
|
|
};
|
|
|
|
}
|