pub struct Settings {
pub theme: Theme,
pub language: Language,
pub rotate_screen: bool,
pub reduce_flashing: bool,
pub contrast: bool,
pub easter_eggs: bool,
}Expand description
System settings. Can be requested using get_settings.
Fields§
§theme: ThemeThe preferred color scheme of the player.
language: LanguageThe configured interface language.
rotate_screen: boolIf true, the screen is rotated 180 degrees.
In other words, the player holds the device upside-down. The touchpad is now on the right and the buttons are on the left.
reduce_flashing: boolThe player has photosensitivity. The app should avoid any rapid flashes.
contrast: boolThe player wants increased contrast for colors.
If set, the black and white colors in the default palette are adjusted automatically. All other colors in the default palette or all colors in a custom palette should be adjusted by the app.
easter_eggs: boolIf true, the player wants to see easter eggs, holiday effects, and weird jokes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more