From cc133304dddfa34245ed4af467cbbbefc616ae5c Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 30 Aug 2024 17:13:25 +0200 Subject: [PATCH] moved icons to assets --- ICON_Disabled.ico => assets/ICON_Disabled.ico | Bin ICON_Disabled.png => assets/ICON_Disabled.png | Bin ICON_Enabled.ico => assets/ICON_Enabled.ico | Bin ICON_Enabled.png => assets/ICON_Enabled.png | Bin run.ps1 | 6 +++--- 5 files changed, 3 insertions(+), 3 deletions(-) rename ICON_Disabled.ico => assets/ICON_Disabled.ico (100%) rename ICON_Disabled.png => assets/ICON_Disabled.png (100%) rename ICON_Enabled.ico => assets/ICON_Enabled.ico (100%) rename ICON_Enabled.png => assets/ICON_Enabled.png (100%) diff --git a/ICON_Disabled.ico b/assets/ICON_Disabled.ico similarity index 100% rename from ICON_Disabled.ico rename to assets/ICON_Disabled.ico diff --git a/ICON_Disabled.png b/assets/ICON_Disabled.png similarity index 100% rename from ICON_Disabled.png rename to assets/ICON_Disabled.png diff --git a/ICON_Enabled.ico b/assets/ICON_Enabled.ico similarity index 100% rename from ICON_Enabled.ico rename to assets/ICON_Enabled.ico diff --git a/ICON_Enabled.png b/assets/ICON_Enabled.png similarity index 100% rename from ICON_Enabled.png rename to assets/ICON_Enabled.png diff --git a/run.ps1 b/run.ps1 index b3e7ea7..21cb41e 100644 --- a/run.ps1 +++ b/run.ps1 @@ -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' })