feat(app-list): close toplevel button
This commit is contained in:
parent
90a46e915a
commit
7a2bad8f34
3 changed files with 278 additions and 238 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue