mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use square44x44logo for preview to avoid big margin
This commit is contained in:
parent
219ca53127
commit
0231c32031
1 changed files with 4 additions and 2 deletions
|
|
@ -96,8 +96,9 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
var visualElement = appNode.SelectSingleNode($"*[local-name()='VisualElements']", namespaceManager);
|
||||
var logoUri = visualElement?.Attributes[logoName]?.Value;
|
||||
app.LogoPath = app.LogoPathFromUri(logoUri, (64, 64));
|
||||
var previewUri = visualElement?.Attributes[bigLogoName]?.Value;
|
||||
app.PreviewImagePath = app.LogoPathFromUri(previewUri, (128, 128));
|
||||
// use small logo or may have a big margin
|
||||
var previewUri = visualElement?.Attributes[logoName]?.Value;
|
||||
app.PreviewImagePath = app.LogoPathFromUri(previewUri, (256, 256));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -555,6 +556,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
// select like logo.[xxx_yyy].png
|
||||
// https://learn.microsoft.com/en-us/windows/uwp/app-resources/tailor-resources-lang-scale-contrast
|
||||
|
||||
// todo select from file name like pt run
|
||||
var selected = logos.FirstOrDefault();
|
||||
var closest = selected;
|
||||
int min = int.MaxValue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue