mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Changed UWP preview target image
This commit is contained in:
parent
075a1a3cce
commit
46f8d42ec6
1 changed files with 5 additions and 3 deletions
|
|
@ -14,6 +14,7 @@ using Flow.Launcher.Plugin.SharedModels;
|
|||
using System.Threading.Channels;
|
||||
using System.Xml;
|
||||
using Windows.ApplicationModel.Core;
|
||||
using Windows.UI.Composition;
|
||||
|
||||
namespace Flow.Launcher.Plugin.Program.Programs
|
||||
{
|
||||
|
|
@ -96,7 +97,8 @@ 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;
|
||||
string previewUriTemp = visualElement?.Attributes[logoName]?.Value;
|
||||
string previewUri = previewUriTemp?.Replace(".png", ".targetsize-256.png");
|
||||
app.PreviewImagePath = app.LogoPathFromUri(previewUri, (128, 128));
|
||||
}
|
||||
}
|
||||
|
|
@ -188,10 +190,10 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
private static readonly Dictionary<PackageVersion, string> bigLogoNameFromVersion = new()
|
||||
{
|
||||
{
|
||||
PackageVersion.Windows10, "Square150x150Logo"
|
||||
PackageVersion.Windows10, "Square310x310Logo"
|
||||
},
|
||||
{
|
||||
PackageVersion.Windows81, "Square150x150Logo"
|
||||
PackageVersion.Windows81, "Square310x310Logo"
|
||||
},
|
||||
{
|
||||
PackageVersion.Windows8, "Logo"
|
||||
|
|
|
|||
Loading…
Reference in a new issue