From 42324a2c9e7ae1e6421bbc68be3f260bdf67ff6c Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Thu, 20 Feb 2025 18:34:25 +0800 Subject: [PATCH] Adjust controls margin --- .../Assets/GlobalResources.axaml | 7 + .../v2rayN.Desktop/Assets/GlobalStyles.axaml | 15 - .../Views/AddServer2Window.axaml | 44 +-- .../Views/AddServerWindow.axaml | 219 ++++++------ .../Views/BackupAndRestoreView.axaml | 58 ++-- .../Views/CheckUpdateView.axaml | 18 +- .../Views/ClashConnectionsView.axaml | 14 +- .../Views/ClashProxiesView.axaml | 22 +- .../Views/DNSSettingWindow.axaml | 59 ++-- .../Views/GlobalHotkeySettingWindow.axaml | 36 +- v2rayN/v2rayN.Desktop/Views/MainWindow.axaml | 2 +- v2rayN/v2rayN.Desktop/Views/MsgView.axaml | 16 +- .../Views/OptionSettingWindow.axaml | 322 +++++++++--------- .../v2rayN.Desktop/Views/ProfilesView.axaml | 16 +- v2rayN/v2rayN.Desktop/Views/QrcodeView.axaml | 8 +- .../Views/RoutingRuleDetailsWindow.axaml | 46 +-- .../Views/RoutingRuleSettingWindow.axaml | 44 +-- .../Views/RoutingSettingWindow.axaml | 10 +- .../v2rayN.Desktop/Views/StatusBarView.axaml | 20 +- .../v2rayN.Desktop/Views/SubEditWindow.axaml | 69 ++-- .../Views/SubSettingWindow.axaml | 6 +- .../Views/ThemeSettingView.axaml | 22 +- 22 files changed, 533 insertions(+), 540 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Assets/GlobalResources.axaml b/v2rayN/v2rayN.Desktop/Assets/GlobalResources.axaml index b557ebd8..cdfff108 100644 --- a/v2rayN/v2rayN.Desktop/Assets/GlobalResources.axaml +++ b/v2rayN/v2rayN.Desktop/Assets/GlobalResources.axaml @@ -10,4 +10,11 @@ 32 32 + + 2 + 4,0 + 4 + 8,0 + 0,8 + 8 diff --git a/v2rayN/v2rayN.Desktop/Assets/GlobalStyles.axaml b/v2rayN/v2rayN.Desktop/Assets/GlobalStyles.axaml index e189ee2a..f098c097 100644 --- a/v2rayN/v2rayN.Desktop/Assets/GlobalStyles.axaml +++ b/v2rayN/v2rayN.Desktop/Assets/GlobalStyles.axaml @@ -5,21 +5,6 @@ - - - - - diff --git a/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml b/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml index 132c6298..a94aedf1 100644 --- a/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml +++ b/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml @@ -1,4 +1,4 @@ - - + + HorizontalAlignment="Left" + Margin="{StaticResource MarginLr8}" /> + Margin="{StaticResource MarginLr8}"> + Margin="{StaticResource MarginLr8}"> @@ -52,7 +52,7 @@ x:Name="menuProxiesReload" Width="{StaticResource IconButtonWidth}" Height="{StaticResource IconButtonHeight}" - Margin="8,0" + Margin="{StaticResource MarginLr8}" Classes="Success" Theme="{DynamicResource BorderlessButton}" ToolTip.Tip="{x:Static resx:ResUI.menuProxiesReload}"> @@ -65,7 +65,7 @@ x:Name="menuProxiesDelaytest" Width="{StaticResource IconButtonWidth}" Height="{StaticResource IconButtonHeight}" - Margin="8,0" + Margin="{StaticResource MarginLr8}" Classes="Success" Theme="{DynamicResource BorderlessButton}" ToolTip.Tip="{x:Static resx:ResUI.menuProxiesDelaytest}"> @@ -75,12 +75,12 @@ @@ -101,7 +101,7 @@ Margin="-8,-4" Padding="0" Theme="{StaticResource CardBorder}"> - + @@ -143,7 +143,7 @@ CornerRadius="4" DockPanel.Dock="Left" IsVisible="{Binding IsActive}" /> - + - + diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml index 5d5ec95e..47df97d2 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml @@ -14,10 +14,10 @@ ShowInTaskbar="False" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> - +