[Feature] Sharper folder icon at 200% (#395), 1.2.9.15

This commit is contained in:
Markus Hofknecht 2022-06-08 20:32:38 +02:00
parent c79cefd1c9
commit e5e1f848e4
2 changed files with 9 additions and 8 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.9.14")]
[assembly: AssemblyFileVersion("1.2.9.14")]
[assembly: AssemblyVersion("1.2.9.15")]
[assembly: AssemblyFileVersion("1.2.9.15")]

View file

@ -152,11 +152,7 @@ namespace SystemTrayMenu.Utilities
{
loading = false;
string extension = Path.GetExtension(filePath);
IconSize size = IconSize.Small;
if (Scaling.Factor > 1)
{
size = IconSize.Large;
}
IconSize size = IconSize.Large;
string key = filePath;
if (!string.IsNullOrEmpty(keyPath))
@ -197,8 +193,13 @@ namespace SystemTrayMenu.Utilities
{
loading = false;
// always IconSize.Small, because IconSize.Large returns another folder icon than windows explorer
IconSize size = IconSize.Small;
if (Scaling.Factor >= 1.50f ||
Properties.Settings.Default.IconSizeInPercent / 100f >= 1.50f)
{
// IconSize.Large returns another folder icon than windows explorer
size = IconSize.Large;
}
string key = path;