Add icon for PAC mode (#5876)

Co-authored-by: author <mail@example.com>
This commit is contained in:
gush4
2024-10-22 09:32:07 +08:00
committed by GitHub
parent 28aa954f8c
commit 0da9cb45bd
7 changed files with 23 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@@ -48,13 +48,16 @@ namespace v2rayN.Desktop.Common
break;
case ESysProxyType.ForcedChange:
case ESysProxyType.Pac:
index = 2;
break;
case ESysProxyType.Unchanged:
index = 3;
break;
case ESysProxyType.Pac:
index = 4;
break;
}
var uri = new Uri($"avares://{Assembly.GetExecutingAssembly().GetName().Name}/Assets/NotifyIcon{index}.ico");
using var bitmap = new Bitmap(AssetLoader.Open(uri));