1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:17:45 +00:00

LibWeb: Implement prefers-color-scheme media query feature

This allows supporting websites to use a light or dark theme to match
our desktop theme, without being limited to palette colors. This can be
overridden with the `WebContentServer::set_preferred_color_scheme()` IPC
call.
This commit is contained in:
Sam Atkins 2021-10-23 17:36:43 +01:00 committed by Linus Groh
parent 53edaa3b26
commit 84414da546
2 changed files with 19 additions and 0 deletions

View file

@ -89,6 +89,7 @@
"crosshair",
"currentcolor",
"cursive",
"dark",
"dashed",
"decimal",
"decimal-leading-zero",
@ -131,6 +132,7 @@
"large",
"larger",
"left",
"light",
"lighter",
"line-through",
"list-item",