feat: update packages

This commit is contained in:
Nova
2022-12-10 09:53:54 -05:00
parent 87e94b4f62
commit ec2845645f
4 changed files with 26 additions and 15 deletions

View File

@@ -152,7 +152,7 @@ impl IconType {
fn render_svg_to_png(svg_path: &PathBuf, png_path: &PathBuf, size: u32) -> Result<()> {
let tree = Tree::from_data(
fs::read(svg_path)?.as_slice(),
&resvg::usvg::Options::default().to_ref(),
&resvg::usvg::Options::default(),
)?;
let mut pixmap = Pixmap::new(size, size).unwrap();
render(

View File

@@ -81,7 +81,7 @@ impl LifeCycleHandler for ProtoStar {
.set_root(self.grabbable.content_parent())
.unwrap();
self.icon_shrink = Some(Tweener::new(QuartInOut::new(self.size..=0.0, 0.25)));
let future = startup_settings.generate_desktop_startup_id().unwrap();
let future = startup_settings.generate_startup_token().unwrap();
let executable = self.executable_path.clone();
tokio::task::spawn(async move {
std::env::set_var("STARDUST_STARTUP_TOKEN", future.await.unwrap());