mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07: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:
parent
53edaa3b26
commit
84414da546
2 changed files with 19 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue