|
|
@ -33,7 +33,7 @@ namespace v2rayN.Handler |
|
|
|
0 => Properties.Resources.NotifyIcon1, |
|
|
|
0 => Properties.Resources.NotifyIcon1, |
|
|
|
1 => Properties.Resources.NotifyIcon2, |
|
|
|
1 => Properties.Resources.NotifyIcon2, |
|
|
|
2 => Properties.Resources.NotifyIcon3, |
|
|
|
2 => Properties.Resources.NotifyIcon3, |
|
|
|
3 => Properties.Resources.NotifyIcon2, |
|
|
|
3 => Properties.Resources.NotifyIcon4, |
|
|
|
_ => Properties.Resources.NotifyIcon1, // default |
|
|
|
_ => Properties.Resources.NotifyIcon1, // default |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
@ -54,13 +54,16 @@ namespace v2rayN.Handler |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case ESysProxyType.ForcedChange: |
|
|
|
case ESysProxyType.ForcedChange: |
|
|
|
case ESysProxyType.Pac: |
|
|
|
|
|
|
|
index = 2; |
|
|
|
index = 2; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case ESysProxyType.Unchanged: |
|
|
|
case ESysProxyType.Unchanged: |
|
|
|
index = 3; |
|
|
|
index = 3; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ESysProxyType.Pac: |
|
|
|
|
|
|
|
index = 4; |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
return BitmapFrame.Create(new Uri($"pack://application:,,,/Resources/NotifyIcon{index}.ico", UriKind.RelativeOrAbsolute)); |
|
|
|
return BitmapFrame.Create(new Uri($"pack://application:,,,/Resources/NotifyIcon{index}.ico", UriKind.RelativeOrAbsolute)); |
|
|
|
} |
|
|
|
} |
|
|
|