Struct egui_theme::EguiTheme [−][src]
pub struct EguiTheme { /* fields omitted */ }Expand description
The EguiTheme is the serializable contents of the relevant font information. This is intended to only be used when reading and writing the Style and FontDefinition information to/from disk.
The FontData is stored directly into the theme as base64 encoded Strings.
Important
This should only be used during the Serialization/Deserialization process. Once the loading has completed, this should be extracted directly to an egui::Context as soon as it has been fully loaded.
Implementations
Create a new style from the required information.
style the egui style information
font_definitions the current font definitions.
Extracts the theme information destructively. This will encode all of the serialized data into an egui::Context ready format.
Important
The theme will no longer be usable after extraction and will move the Style and FontDefinitions data for use.
Style and font data should be managed by your application after extraction.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more