From aa829a66ea42e763deaca24ef1c38a928fbfeb33 Mon Sep 17 00:00:00 2001
From: 2dust <31833384+2dust@users.noreply.github.com>
Date: Mon, 16 Sep 2024 18:21:30 +0800
Subject: [PATCH] Improved Style for Desktop version
---
.../v2rayN.Desktop/Styles/GlobalStyles.axaml | 16 -
.../Views/AddServer2Window.axaml | 28 +-
.../Views/AddServerWindow.axaml | 758 +++++++++---------
.../Views/DNSSettingWindow.axaml | 8 +-
.../Views/GlobalHotkeySettingWindow.axaml | 26 +-
v2rayN/v2rayN.Desktop/Views/MainWindow.axaml | 3 +-
v2rayN/v2rayN.Desktop/Views/MsgView.axaml | 8 +-
.../Views/OptionSettingWindow.axaml | 4 +-
.../v2rayN.Desktop/Views/ProfilesView.axaml | 2 +-
.../Views/RoutingRuleDetailsWindow.axaml | 30 +-
.../Views/RoutingRuleSettingWindow.axaml | 32 +-
.../v2rayN.Desktop/Views/SubEditWindow.axaml | 69 +-
12 files changed, 486 insertions(+), 498 deletions(-)
diff --git a/v2rayN/v2rayN.Desktop/Styles/GlobalStyles.axaml b/v2rayN/v2rayN.Desktop/Styles/GlobalStyles.axaml
index ca5f9081..aaeec2c5 100644
--- a/v2rayN/v2rayN.Desktop/Styles/GlobalStyles.axaml
+++ b/v2rayN/v2rayN.Desktop/Styles/GlobalStyles.axaml
@@ -5,22 +5,6 @@
-
-
-
-
-
-
diff --git a/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml b/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml
index 2f54573d..797d8117 100644
--- a/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml
+++ b/v2rayN/v2rayN.Desktop/Views/AddServer2Window.axaml
@@ -16,7 +16,7 @@
+ Classes="Margin8" />
+ Classes="Margin8" />
+ Classes="Margin8" />
+ Classes="Margin8">
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
-
-
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+ Classes="Margin8" />
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
-
-
-
+
-
-
-
+
-
-
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
-
-
+ Classes="Margin8" />
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
-
-
-
-
-
-
-
+ HorizontalAlignment="Left"
+ Classes="Margin8" />
+
+
+
+
+
\ No newline at end of file
diff --git a/v2rayN/v2rayN.Desktop/Views/DNSSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/DNSSettingWindow.axaml
index dda0ad4e..846b16a3 100644
--- a/v2rayN/v2rayN.Desktop/Views/DNSSettingWindow.axaml
+++ b/v2rayN/v2rayN.Desktop/Views/DNSSettingWindow.axaml
@@ -16,7 +16,7 @@
+ Watermark="Http/Socks" />
@@ -153,7 +153,7 @@
BorderThickness="1"
Classes="TextArea Margin8"
TextWrapping="Wrap"
- ToolTip.Tip="Http/Socks" />
+ Watermark="Http/Socks" />
@@ -165,7 +165,7 @@
BorderThickness="1"
Classes="TextArea Margin8"
TextWrapping="Wrap"
- ToolTip.Tip="{x:Static resx:ResUI.TbSettingsTunMode}" />
+ Watermark="{x:Static resx:ResUI.TbSettingsTunMode}" />
diff --git a/v2rayN/v2rayN.Desktop/Views/GlobalHotkeySettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/GlobalHotkeySettingWindow.axaml
index 73fbc239..743c9c62 100644
--- a/v2rayN/v2rayN.Desktop/Views/GlobalHotkeySettingWindow.axaml
+++ b/v2rayN/v2rayN.Desktop/Views/GlobalHotkeySettingWindow.axaml
@@ -15,7 +15,7 @@
mc:Ignorable="d">
@@ -60,13 +60,13 @@
@@ -74,68 +74,68 @@
x:Name="txtGlobalHotkey0"
Grid.Row="1"
Grid.Column="1"
- Classes="Margin4"
+ Classes="Margin8"
VerticalAlignment="Center"
IsReadOnly="True" />
diff --git a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml
index 67aa020b..76eb5766 100644
--- a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml
+++ b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml
@@ -148,7 +148,8 @@
+ Classes="Margin4"
+ Theme="{StaticResource SimpleToggleSwitch}" />
+ Watermark="{x:Static resx:ResUI.MsgFilterTitle}" />
+ IsChecked="True"
+ Theme="{StaticResource SimpleToggleSwitch}" />
+ IsChecked="True"
+ Theme="{StaticResource SimpleToggleSwitch}" />
+ Watermark="Up" />
+ Watermark="Down" />
+ Watermark="{x:Static resx:ResUI.MsgServerTitle}" />
+ Classes="Margin8" />
+ Classes="Margin8">
@@ -75,14 +75,14 @@
Grid.Row="2"
Grid.Column="0"
VerticalAlignment="Center"
- Classes="Margin4"
+ Classes="Margin8"
Text="protocol" />
@@ -90,13 +90,13 @@
Grid.Row="3"
Grid.Column="0"
VerticalAlignment="Center"
- Classes="Margin4"
+ Classes="Margin8"
Text="inboundTag" />
@@ -104,34 +104,34 @@
Grid.Row="4"
Grid.Column="0"
VerticalAlignment="Center"
- Classes="Margin4"
+ Classes="Margin8"
Text="network" />
+ Classes="Margin8" />
diff --git a/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml
index 27a76c06..0f56a2a0 100644
--- a/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml
+++ b/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml
@@ -62,7 +62,7 @@
Grid.Row="0"
Grid.Column="0"
VerticalAlignment="Center"
- Classes="Margin4"
+ Classes="Margin8"
Text="{x:Static resx:ResUI.LvRemarks}" />
+ Classes="Margin8" />
+ Classes="Margin8" />
+ Classes="Margin8" />
+ Classes="Margin8">
@@ -168,13 +168,13 @@
Width="600"
HorizontalAlignment="Left"
VerticalAlignment="Center"
- Classes="Margin4"
+ Classes="Margin8"
TextWrapping="Wrap" />
diff --git a/v2rayN/v2rayN.Desktop/Views/SubEditWindow.axaml b/v2rayN/v2rayN.Desktop/Views/SubEditWindow.axaml
index a8a05b1b..bd1f91f3 100644
--- a/v2rayN/v2rayN.Desktop/Views/SubEditWindow.axaml
+++ b/v2rayN/v2rayN.Desktop/Views/SubEditWindow.axaml
@@ -17,7 +17,7 @@
+ Watermark="{x:Static resx:ResUI.SubUrlTips}" />
+ Classes="Margin8">
+ Watermark="{x:Static resx:ResUI.SubUrlTips}" />
@@ -129,21 +129,21 @@
Grid.Row="5"
Grid.Column="0"
VerticalAlignment="Center"
- Classes="Margin4"
+ Classes="Margin8"
Text="{x:Static resx:ResUI.LvFilter}" />
+ Classes="Margin8"
+ Watermark="{x:Static resx:ResUI.SubUrlTips}" />
+ Watermark="{x:Static resx:ResUI.SubUrlTips}" />
+ Classes="Margin8" />
+ Classes="Margin8"
+ Watermark="{x:Static resx:ResUI.LvPrevProfileTip}" />
+ Classes="Margin8"
+ Watermark="{x:Static resx:ResUI.LvPrevProfileTip}" />
+ Classes="Margin8"
+ ToolTip.Tip="{x:Static resx:ResUI.TipPreSocksPort}"
+ Watermark="{x:Static resx:ResUI.TipPreSocksPort}" />
+ Watermark="{x:Static resx:ResUI.SubUrlTips}" />