#[non_exhaustive]pub enum Problem {
Show 15 variants
Io {
file: String,
message: String,
},
Tokens(Error),
Repeated {
path: String,
file: String,
},
Extends {
file: String,
},
UnknownTerm {
path: String,
reason: String,
},
UnknownComponent {
path: String,
component: String,
},
TermType {
path: String,
expected: String,
found: String,
},
Manifest {
reason: String,
},
Font {
file: String,
reason: String,
},
Name {
asked: String,
used: String,
},
NotCached {
file: String,
reason: String,
},
NotRead {
what: String,
},
Format {
file: String,
warning: Warning,
},
Theme(Error),
SameGlyph {
roles: (String, String),
icon: String,
},
}Expand description
What is wrong with a kit. The kit is usable anyway: each problem says what is done instead.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io
A file could not be read.
Tokens(Error)
A token file is not valid YAML or JSON, or not a token file: its
tokens are left out (all of them for kit.yaml: the kit is its
base theme).
Repeated
Two of the kit’s files give the same token: the first one read
(kit.yaml, then the others by name) is kept.
Extends
A token file other than kit.yaml says what it extends: only
kit.yaml does.
UnknownTerm
A token of a kit component with a term outside the vocabulary
(docs/kit.md): no component reads it.
UnknownComponent
A token shaped component.state.term for a component no kit has.
TermType
A term given with another type than the vocabulary’s: the component reads nothing there.
Manifest
The manifest ($extensions."org.egui-pop.kit") is not as expected:
that part of it is ignored.
Font
A face could not be used: it is left out, and the families naming
it fall back (egui_pop_core::fonts).
Name
The kit’s name is a built-in theme’s: it is used with -kit
added, so the built-in theme is not replaced.
NotCached
A token file’s compiled form could not be kept in the cache
(crate::cache): it was read uncached, and is parsed again
next time.
NotRead
A part of the folder egui-pop does not read yet.
Format
A token file of the kit was read otherwise than written, by its
format stamp (crate::FormatStamp): stamped newer than this
egui-pop (read best-effort), a stamp that cannot be read, or a
token renamed since the contract it was written for (read under
its new name). Kit files load as theme files do, with warnings.
Theme(Error)
A problem of the theme the kit resolves to (check).
SameGlyph
Two glyph roles of DISTINCT_GLYPHS name the same icon: two
states would differ by colour alone, so egui-pop draws its own
shapes for them.