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:
parent
877be0eb43
commit
966d808135
3 changed files with 8 additions and 22 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue