feat(app-list): close toplevel button

This commit is contained in:
Vukašin Vojinović 2025-12-19 11:56:11 +01:00 committed by Michael Murphy
parent 90a46e915a
commit 7a2bad8f34
3 changed files with 278 additions and 238 deletions

View file

@ -506,9 +506,9 @@ impl AppData {
return;
};
// resize to 128x128
// resize to 256x256
let max = img.width().max(img.height());
let ratio = max as f32 / 128.0;
let ratio = max as f32 / 256.0;
let img = if ratio > 1.0 {
let new_width = (img.width() as f32 / ratio).round();