Skip to content

Commit 46f8d42

Browse files
committed
- Changed UWP preview target image
1 parent 075a1a3 commit 46f8d42

File tree

1 file changed

+5
-3
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+5
-3
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using System.Threading.Channels;
1515
using System.Xml;
1616
using Windows.ApplicationModel.Core;
17+
using Windows.UI.Composition;
1718

1819
namespace Flow.Launcher.Plugin.Program.Programs
1920
{
@@ -96,7 +97,8 @@ public void InitAppsInPackage(Package package)
9697
var visualElement = appNode.SelectSingleNode($"*[local-name()='VisualElements']", namespaceManager);
9798
var logoUri = visualElement?.Attributes[logoName]?.Value;
9899
app.LogoPath = app.LogoPathFromUri(logoUri, (64, 64));
99-
var previewUri = visualElement?.Attributes[bigLogoName]?.Value;
100+
string previewUriTemp = visualElement?.Attributes[logoName]?.Value;
101+
string previewUri = previewUriTemp?.Replace(".png", ".targetsize-256.png");
100102
app.PreviewImagePath = app.LogoPathFromUri(previewUri, (128, 128));
101103
}
102104
}
@@ -188,10 +190,10 @@ private PackageVersion GetPackageVersionFromManifest(XmlNode xmlRoot)
188190
private static readonly Dictionary<PackageVersion, string> bigLogoNameFromVersion = new()
189191
{
190192
{
191-
PackageVersion.Windows10, "Square150x150Logo"
193+
PackageVersion.Windows10, "Square310x310Logo"
192194
},
193195
{
194-
PackageVersion.Windows81, "Square150x150Logo"
196+
PackageVersion.Windows81, "Square310x310Logo"
195197
},
196198
{
197199
PackageVersion.Windows8, "Logo"

0 commit comments

Comments
 (0)