mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 08:22:55 +00:00
LibWeb: Add motion preference
This adds a motion preference to the browser UI similar to the existing ones for color scheme and contrast. Both AppKit UI and Qt UI has this new preference. The auto value is currently the same as NoPreference, follow-ups can address wiring that up to the actual preference for the OS.
This commit is contained in:
parent
0b22aae518
commit
099b77d60f
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/lukewarlow
Commit: 099b77d60f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/151
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/trflynn89 ✅
25 changed files with 238 additions and 8 deletions
|
@ -162,6 +162,11 @@ void ViewImplementation::set_preferred_contrast(Web::CSS::PreferredContrast cont
|
|||
client().async_set_preferred_contrast(page_id(), contrast);
|
||||
}
|
||||
|
||||
void ViewImplementation::set_preferred_motion(Web::CSS::PreferredMotion motion)
|
||||
{
|
||||
client().async_set_preferred_motion(page_id(), motion);
|
||||
}
|
||||
|
||||
ByteString ViewImplementation::selected_text()
|
||||
{
|
||||
return client().get_selected_text(page_id());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue