Crates.io | mundy |
lib.rs | mundy |
version | |
source | src |
created_at | 2024-10-13 20:51:00.028526 |
updated_at | 2024-12-10 10:55:23.03392 |
description | Reads various system-level accessibility and UI preferences |
homepage | |
repository | https://github.com/bash/mundy |
max_upload_size | |
id | 1407672 |
Cargo.toml error: | TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Your friendly neighbourhood whale crate for reading various system-level
accessibility and UI preferences across platforms 🐋
The following preferences are supported:
AccentColor
—The user's current system wide accent color preference.ColorScheme
—The user's preference for either light or dark mode.Contrast
—The user's preferred contrast level.ReducedMotion
—The user's reduced motion preference.ReducedTransparency
—The user's reduced transparency preference.DoubleClickInterval
—The maximum amount of time allowed between the first and second click.use mundy::{Preferences, Interest};
use futures_lite::StreamExt as _;
// Interest tells mundy which preferences it should monitor for you.
// use `Interest::All` if you're interested in all preferences.
let mut stream = Preferences::stream(Interest::AccentColor);
async {
while let Some(preferences) = stream.next().await {
eprintln!("accent color: {:?}", preferences.accent_color);
}
};
Licensed under the Apache License, Version 2.0 (license.txt or http://www.apache.org/licenses/LICENSE-2.0)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.