2dust 2024-12-19 16:07:45 +08:00
parent b3d8042452
commit b2bbe432e0
3 changed files with 5 additions and 13 deletions

View File

@ -105,7 +105,7 @@
<DataTemplate> <DataTemplate>
<Border <Border
Width="160" Width="160"
Margin="0" Margin="-6"
Padding="0" Padding="0"
Theme="{StaticResource CardBorder}"> Theme="{StaticResource CardBorder}">
<DockPanel> <DockPanel>
@ -143,13 +143,12 @@
<DataTemplate> <DataTemplate>
<Border <Border
Width="160" Width="160"
Margin="0" Margin="-6"
Padding="0" Padding="0"
Theme="{StaticResource CardBorder}"> Theme="{StaticResource CardBorder}">
<DockPanel> <DockPanel>
<Border <Border
Width="5" Width="5"
Height="30"
Margin="0,1" Margin="0,1"
Background="YellowGreen" Background="YellowGreen"
CornerRadius="4" CornerRadius="4"

View File

@ -323,7 +323,7 @@ namespace v2rayN.Desktop.Views
ViewModel?.RefreshServers(); ViewModel?.RefreshServers();
} }
} }
//#endregion Event //#endregion Event
//#region UI //#region UI
@ -353,10 +353,7 @@ namespace v2rayN.Desktop.Views
} }
if (item.Name.ToLower().StartsWith("to")) if (item.Name.ToLower().StartsWith("to"))
{ {
if (!_config.GuiItem.EnableStatistics) item2.IsVisible = _config.GuiItem.EnableStatistics;
{
item2.IsVisible = false;
}
} }
} }
} }

View File

@ -1,7 +1,6 @@
using MaterialDesignThemes.Wpf; using MaterialDesignThemes.Wpf;
using ReactiveUI; using ReactiveUI;
using Splat; using Splat;
using System;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
@ -342,10 +341,7 @@ namespace v2rayN.Views
} }
if (item.Name.ToLower().StartsWith("to")) if (item.Name.ToLower().StartsWith("to"))
{ {
if (!_config.GuiItem.EnableStatistics) item2.Visibility = _config.GuiItem.EnableStatistics ? Visibility.Visible : Visibility.Hidden;
{
item2.Visibility = Visibility.Hidden;
}
} }
} }
} }