mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
LibWeb+WebContent: Add set_preferred_color_scheme IPC call
This allows the owner of a WebView to override whether to use a dark theme or not, instead of just using the system theme's IsDark property.
This commit is contained in:
parent
c8550da9c5
commit
53edaa3b26
Notes:
sideshowbarker
2024-07-18 01:40:26 +09:00
Author: https://github.com/AtkinsSJ
Commit: 53edaa3b26
Pull-request: https://github.com/SerenityOS/serenity/pull/10609
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
11 changed files with 44 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/URL.h>
|
||||
#include <LibGUI/AbstractScrollableWidget.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
#include <LibWeb/WebViewHooks.h>
|
||||
|
||||
namespace Web {
|
||||
|
@ -52,6 +53,7 @@ public:
|
|||
String dump_layout_tree();
|
||||
|
||||
void set_content_filters(Vector<String>);
|
||||
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);
|
||||
|
||||
void notify_server_did_layout(Badge<WebContentClient>, const Gfx::IntSize& content_size);
|
||||
void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue