moved icons to assets

This commit is contained in:
Baipyrus 2024-08-30 17:13:25 +02:00
parent 06d9244e2c
commit cc133304dd
5 changed files with 3 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -5,7 +5,7 @@ Add-Type -AssemblyName System.Drawing
# Create a new NotifyIcon
$trayIcon = New-Object System.Windows.Forms.NotifyIcon
# Use a default application icon
$trayIcon.Icon = './ICON_Disabled.ico'
$trayIcon.Icon = './assets/ICON_Disabled.ico'
$trayIcon.Text = 'ProxySwitcher'
$trayIcon.Visible = $true
@ -23,7 +23,7 @@ $ctxProperties.Add_Click({
$ctxEnable = New-Object System.Windows.Forms.ToolStripMenuItem
$ctxEnable.Text = 'Enable Proxy'
$ctxEnable.Add_Click({
$trayIcon.Icon = './ICON_Enabled.ico'
$trayIcon.Icon = './assets/ICON_Enabled.ico'
Start-Process powershell.exe -ArgumentList '-Command', 'go run . set'
})
@ -31,7 +31,7 @@ $ctxEnable.Add_Click({
$ctxDisable = New-Object System.Windows.Forms.ToolStripMenuItem
$ctxDisable.Text = 'Disable Proxy'
$ctxDisable.Add_Click({
$trayIcon.Icon = './ICON_Disabled.ico'
$trayIcon.Icon = './assets/ICON_Disabled.ico'
Start-Process powershell.exe -ArgumentList '-Command', 'go run . unset'
})