mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +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
11 changed files with 44 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#include <AK/URL.h>
|
||||
#include <LibCore/AnonymousBuffer.h>
|
||||
#include <LibGfx/ShareableBitmap.h>
|
||||
#include <LibWeb/CSS/PreferredColorScheme.h>
|
||||
|
||||
endpoint WebContentServer
|
||||
{
|
||||
|
@ -41,5 +42,6 @@ endpoint WebContentServer
|
|||
select_all() =|
|
||||
|
||||
set_content_filters(Vector<String> filters) =|
|
||||
set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =|
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue