1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

Ladybird: Replace ColorScheme enum with Web::CSS::PreferredColorScheme

This matches OutOfProcessWebView::set_preferred_color_scheme().
This commit is contained in:
Linus Groh 2023-01-12 18:27:34 +00:00
parent 877be0eb43
commit 966d808135
3 changed files with 8 additions and 22 deletions

View file

@ -17,6 +17,7 @@
#include <LibGfx/Forward.h>
#include <LibGfx/Rect.h>
#include <LibGfx/StandardCursor.h>
#include <LibWeb/CSS/PreferredColorScheme.h>
#include <LibWeb/CSS/Selector.h>
#include <LibWebView/ViewImplementation.h>
@ -40,12 +41,6 @@ class WebContentClient;
using WebView::WebContentClient;
enum class ColorScheme {
Auto,
Light,
Dark,
};
class Tab;
class WebContentView final
@ -111,7 +106,7 @@ public:
Gfx::IntPoint to_content(Gfx::IntPoint) const;
Gfx::IntPoint to_widget(Gfx::IntPoint) const;
void set_color_scheme(ColorScheme);
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);
void zoom_in();
void zoom_out();