mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Add Contrast preference
This commit is contained in:
committed by
Andreas Kling
parent
7ac6fd2746
commit
ee64684565
@@ -933,6 +933,12 @@ void ConnectionFromClient::set_preferred_color_scheme(u64 page_id, Web::CSS::Pre
|
||||
page->set_preferred_color_scheme(color_scheme);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_preferred_contrast(u64 page_id, Web::CSS::PreferredContrast const& contrast)
|
||||
{
|
||||
if (auto page = this->page(page_id); page.has_value())
|
||||
page->set_preferred_contrast(contrast);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_has_focus(u64 page_id, bool has_focus)
|
||||
{
|
||||
if (auto page = this->page(page_id); page.has_value())
|
||||
|
||||
Reference in New Issue
Block a user