Skip to main content

Module appearance

Module appearance 

Source
Expand description

The appearance section’s plain leaves and bounds, which the toolkit draws by and the settings store’s typed keys write within. The schedule is crate::day_schedule’s.

Re-exports§

pub use crate::day_schedule::MODE_KEY;
pub use crate::day_schedule::SECTION;

Constants§

DEVICE_SECTION
The section of this device’s own appearance, beside the person’s.
LANGUAGE
The field of the interface language, named as its language pack is (de; see tilo_paths::language_of). Unset follows the device’s locale.
TEXT_SCALE_MAX
TEXT_SCALE_MIN
The bounds of the person’s text scale.
TRANSLUCENCY_MAX
TRANSLUCENCY_MIN
The bounds of how much of a theme’s translucency the person keeps.

Functions§

preferred_language
The interface language: the one the person chose (LANGUAGE), else the locale the device runs in (LC_ALL, LC_MESSAGES, LANGUAGE, LANG, read as POSIX).
preferred_language_from
preferred_language over an explicit choice and system locale. A value that names no language (C, POSIX, malformed) falls back to the next source; None means neither named one.