mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-28 08:04:58 +03:00
Add icon for PAC mode (#5876)
Co-authored-by: author <mail@example.com>
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user