From 6d28822851293b137dc1a3b98a63c55e9eff010d Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Fri, 7 Jan 2022 12:40:55 +0100 Subject: [PATCH] [BUG] Fix hidden files not shown transparent, version 1.2.0.10 --- Business/Menus.cs | 1 + Properties/AssemblyInfo.cs | 4 ++-- README.md | 2 ++ UserInterface/AppContextMenu.cs | 2 +- Utilities/File/IconReader.cs | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Business/Menus.cs b/Business/Menus.cs index 4b03b52..6ed9954 100644 --- a/Business/Menus.cs +++ b/Business/Menus.cs @@ -524,6 +524,7 @@ namespace SystemTrayMenu.Business } RowData rowData = ReadRowData(file, false, false); + rowData.HiddenEntry = hiddenEntry; string resolvedLnkPath = string.Empty; if (rowData.ReadIcon(false, ref resolvedLnkPath, level)) { diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 445e60e..27f8688 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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.0.9")] -[assembly: AssemblyFileVersion("1.2.0.9")] +[assembly: AssemblyVersion("1.2.0.10")] +[assembly: AssemblyFileVersion("1.2.0.10")] diff --git a/README.md b/README.md index 080f99e..731c31b 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,8 @@ Thanks for ideas, reporting issues and contributing! #275 #276 #278 [donaldaken](https://github.com/donaldaken), #277 Jan S., #282 [akuznets](https://github.com/akuznets), +#283 #284 [RuSieg](https://github.com/RuSieg), +#285 #286 [dao-net](https://github.com/dao-net), Donations diff --git a/UserInterface/AppContextMenu.cs b/UserInterface/AppContextMenu.cs index b8b4648..20dbc0c 100644 --- a/UserInterface/AppContextMenu.cs +++ b/UserInterface/AppContextMenu.cs @@ -101,7 +101,7 @@ namespace SystemTrayMenu.Helper ab.AppMoreInfo += "#205 kristofzerbe, #209 jonaskohl, #211 blacksparrow15, #220 Yavuz E., #229 #230 #239 Peter O., #231 Ryonez, "; ab.AppMoreInfo += "#235 #242 243 #247, #271 Tom, #237 Torsten S., #240 video Patrick, #244 Gunter D., #246 MACE4GITHUB, #259 vanjac, "; ab.AppMoreInfo += "#262 terencemcdonnell, #269 petersnows25, #272 Peter M., #273 #274 ParasiteDelta, #275 #276 #278 donaldaken, "; - ab.AppMoreInfo += "#277 Jan S., #282 akuznets," + Environment.NewLine; + ab.AppMoreInfo += "#277 Jan S., #282 akuznets, #283 #284 RuSieg, #285 #286 dao-net," + Environment.NewLine; ab.AppDetailsButton = true; ab.ShowDialog(); } diff --git a/Utilities/File/IconReader.cs b/Utilities/File/IconReader.cs index f5ea339..52c308d 100644 --- a/Utilities/File/IconReader.cs +++ b/Utilities/File/IconReader.cs @@ -368,7 +368,7 @@ namespace SystemTrayMenu.Utilities using Bitmap target = new(originalIcon.Width, originalIcon.Height, PixelFormat.Format32bppArgb); using Graphics graphics = Graphics.FromImage(target); graphics.DrawIcon(originalIcon, 0, 0); - graphics.DrawIcon(overlay, 0, 0); + graphics.DrawIcon(overlay, new(0, 0, originalIcon.Width + 2, originalIcon.Height + 2)); target.MakeTransparent(target.GetPixel(1, 1)); IntPtr hIcon = target.GetHicon(); icon = (Icon)Icon.FromHandle(hIcon).Clone();