Files
serenity/Userland/Libraries/LibWeb/CSS/PreferredMotion.h
Luke Warlow f747be119d 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.

(cherry picked from commit 099b77d60f6c30b4d533872fda29ea6d660ed358)
2024-09-28 07:57:00 -04:00

23 lines
354 B
C++

/*
* Copyright (c) 2024, the Ladybird developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/StringView.h>
namespace Web::CSS {
enum class PreferredMotion {
Auto,
NoPreference,
Reduce,
};
PreferredMotion preferred_motion_from_string(StringView);
StringView preferred_motion_to_string(PreferredMotion);
}