#[non_exhaustive]pub enum Warning {
Newer {
path: String,
found: u64,
known: u64,
},
BadStamp {
path: String,
reason: String,
},
Renamed {
from: String,
to: String,
contract: u64,
},
Unknown {
path: String,
base: String,
kept: bool,
},
Invalid {
path: String,
reason: String,
},
Unchecked {
base: String,
},
NotCached {
file: String,
reason: String,
},
Font {
file: String,
reason: String,
},
FontMissing {
path: String,
family: String,
fallback: String,
},
}Expand description
Something a token file loaded with, short of failing: the file still loads, and the warning says what was read otherwise than written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Newer
The file is stamped with a newer format or contract than this egui-pop knows: it is read best-effort.
Fields
BadStamp
The stamp cannot be read: the file is read as current.
Renamed
A token renamed since the contract the file was written for: read under its new name.
Unknown
A token the base theme does not have: kept as the file’s own,
or left out (the theme editor changes its base’s tokens only).
Invalid
A token whose value does not load over the base theme: left out, the base theme’s value kept.
Unchecked
The base theme ($extends) is not known yet: the tokens were not
checked; resolving the theme reports what is wrong.
NotCached
The file’s compiled form could not be kept in the cache
(crate::cache): it was read uncached, and is compiled again
next time.
Font
A file of a theme package (crate::package) not read: a face
missing, not a font or outside the package (the families naming
it fall back), or a second token file.
FontMissing
A font family a token names (font.family.ui) not found where
the theme is loaded (a system face not installed on this
machine): the theme still loads, and fallback, the next name
of the list found, draws instead.