Fix windows TaskbarIcon

This commit is contained in:
2dust 2025-02-15 17:26:20 +08:00
parent 51ac7cc8be
commit c2e1cf7bdb

View file

@ -1,4 +1,4 @@
<reactiveui:ReactiveUserControl
<reactiveui:ReactiveUserControl
x:Class="v2rayN.Views.StatusBarView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@ -102,11 +102,9 @@
<tb:TaskbarIcon
x:Name="tbNotify"
IconSource="/Resources/v2rayN.ico"
NoLeftClickDelay="True"
ToolTipText="v2rayN">
<tb:TaskbarIcon.IconSource>
<tb:GeneratedIconSource Foreground="Red" Text="❤️" />
</tb:TaskbarIcon.IconSource>
<tb:TaskbarIcon.ContextMenu>
<ContextMenu Style="{StaticResource DefContextMenu}">
<MenuItem x:Name="menuSystemProxyClear" Height="{StaticResource MenuItemHeight}">
@ -215,4 +213,4 @@
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
</Grid>
</reactiveui:ReactiveUserControl>
</reactiveui:ReactiveUserControl>