1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

LibWebView: Add a standard "look like the OS" style sheet

It's quite common to want the web-view to match the native OS widgets,
so let's make that easy to do.
This commit is contained in:
Sam Atkins 2023-08-24 11:01:09 +01:00 committed by Sam Atkins
parent 84a5c67d6b
commit 7436f4fec2
4 changed files with 53 additions and 0 deletions

View file

@ -436,4 +436,10 @@ void OutOfProcessWebView::set_user_style_sheet(String source)
client().async_set_user_style(source);
}
void OutOfProcessWebView::use_native_user_style_sheet()
{
extern StringView native_stylesheet_source;
set_user_style_sheet(MUST(String::from_utf8(native_stylesheet_source)));
}
}