use super::App;
use gled_model::asset::svg::Svg;
impl App {
pub(crate) fn svg(&self) -> Option<&Svg> {
self.project
.as_ref()
.and_then(|project| project.svg.as_ref())
}
pub(crate) fn svg_texture(&mut self, context: &egui::Context) -> Option<egui::TextureHandle> {
let svg = self.project.as_ref()?.svg.as_ref()?;
self.svg_runtime.texture(svg, context)
}
}