Skip to content

Commit 219ca53

Browse files
revert
1 parent f509f56 commit 219ca53

File tree

1 file changed

+4
-6
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+4
-6
lines changed

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

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

1918
namespace Flow.Launcher.Plugin.Program.Programs
2019
{
@@ -97,9 +96,8 @@ public void InitAppsInPackage(Package package)
9796
var visualElement = appNode.SelectSingleNode($"*[local-name()='VisualElements']", namespaceManager);
9897
var logoUri = visualElement?.Attributes[logoName]?.Value;
9998
app.LogoPath = app.LogoPathFromUri(logoUri, (64, 64));
100-
string previewUriTemp = visualElement?.Attributes[logoName]?.Value;
101-
string previewUri = previewUriTemp?.Replace(".png", ".targetsize-96.png");
102-
app.PreviewImagePath = app.LogoPathFromUri(previewUri, (96, 96));
99+
var previewUri = visualElement?.Attributes[bigLogoName]?.Value;
100+
app.PreviewImagePath = app.LogoPathFromUri(previewUri, (128, 128));
103101
}
104102
}
105103
}
@@ -190,10 +188,10 @@ private PackageVersion GetPackageVersionFromManifest(XmlNode xmlRoot)
190188
private static readonly Dictionary<PackageVersion, string> bigLogoNameFromVersion = new()
191189
{
192190
{
193-
PackageVersion.Windows10, "Square310x310Logo"
191+
PackageVersion.Windows10, "Square150x150Logo"
194192
},
195193
{
196-
PackageVersion.Windows81, "Square310x310Logo"
194+
PackageVersion.Windows81, "Square150x150Logo"
197195
},
198196
{
199197
PackageVersion.Windows8, "Logo"

0 commit comments

Comments
 (0)