ConnectionInfoDialog.xaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <Window x:Class="ClashDotNetFramework.Dialogs.ConnectionInfoDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ClashDotNetFramework.Dialogs"
  7. xmlns:emoji="clr-namespace:Emoji.Wpf;assembly=Emoji.Wpf"
  8. mc:Ignorable="d" FontSize="14" KeyDown="Window_KeyDown"
  9. Title="ConnectionInfoDialog" Background="{DynamicResource DialogBackground}"
  10. Height="500" Width="450"
  11. WindowStyle="None" ResizeMode="NoResize" AllowsTransparency="True"
  12. WindowStartupLocation="CenterOwner"
  13. ShowInTaskbar="False">
  14. <Window.Resources>
  15. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  16. <Setter Property="FontSize" Value="16"/>
  17. <Setter Property="Foreground" Value="{DynamicResource NormalTextForeground}"/>
  18. </Style>
  19. <Style x:Key="TextBlockSmallStyle" TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}">
  20. <Setter Property="FontSize" Value="14"/>
  21. <Setter Property="Margin" Value="0,5"/>
  22. </Style>
  23. </Window.Resources>
  24. <Grid>
  25. <Grid.RowDefinitions>
  26. <!-- Dialog Title -->
  27. <RowDefinition Height="Auto"/>
  28. <!-- Main Content -->
  29. <RowDefinition/>
  30. </Grid.RowDefinitions>
  31. <TextBlock
  32. Text="Connection Info"
  33. Foreground="{DynamicResource NormalTextForeground}"
  34. FontSize="18"
  35. Margin="20,20,20,0"/>
  36. <!-- Main Content -->
  37. <StackPanel
  38. Grid.Row="1"
  39. Margin="20">
  40. <StackPanel>
  41. <Separator
  42. Background="{DynamicResource SeparatorBackground}"/>
  43. <TextBlock
  44. Style="{StaticResource TextBlockStyle}"
  45. Text="Host"
  46. Margin="0,5,0,0"/>
  47. <TextBlock
  48. Style="{StaticResource TextBlockSmallStyle}"
  49. Text="{Binding Host}"/>
  50. <Separator
  51. Background="{DynamicResource SeparatorBackground}"/>
  52. </StackPanel>
  53. <StackPanel
  54. Margin="0,5,0,0">
  55. <TextBlock
  56. Style="{StaticResource TextBlockStyle}"
  57. Text="Upload"/>
  58. <TextBlock
  59. Style="{StaticResource TextBlockSmallStyle}"
  60. Text="{Binding Upload}"
  61. Margin="0,5"/>
  62. <Separator
  63. Background="{DynamicResource SeparatorBackground}"/>
  64. </StackPanel>
  65. <StackPanel
  66. Margin="0,5,0,0">
  67. <TextBlock
  68. Style="{StaticResource TextBlockStyle}"
  69. Text="Download"/>
  70. <TextBlock
  71. Style="{StaticResource TextBlockSmallStyle}"
  72. Text="{Binding Download}"/>
  73. <Separator
  74. Background="{DynamicResource SeparatorBackground}"/>
  75. </StackPanel>
  76. <StackPanel
  77. Margin="0,5,0,0">
  78. <TextBlock
  79. Style="{StaticResource TextBlockStyle}"
  80. Text="Source"/>
  81. <TextBlock
  82. Style="{StaticResource TextBlockSmallStyle}"
  83. Text="{Binding Source}"/>
  84. <Separator
  85. Background="{DynamicResource SeparatorBackground}"/>
  86. </StackPanel>
  87. <StackPanel
  88. Margin="0,5,0,0">
  89. <TextBlock
  90. Style="{StaticResource TextBlockStyle}"
  91. Text="Destination"/>
  92. <TextBlock
  93. Style="{StaticResource TextBlockSmallStyle}"
  94. Text="{Binding Destination}"/>
  95. <Separator
  96. Background="{DynamicResource SeparatorBackground}"/>
  97. </StackPanel>
  98. <StackPanel
  99. Margin="0,5,0,0">
  100. <TextBlock
  101. Style="{StaticResource TextBlockStyle}"
  102. Text="Rule"/>
  103. <TextBlock
  104. Style="{StaticResource TextBlockSmallStyle}"
  105. Text="{Binding Rule}"/>
  106. <Separator
  107. Background="{DynamicResource SeparatorBackground}"/>
  108. </StackPanel>
  109. <StackPanel
  110. Margin="0,5,0,0">
  111. <TextBlock
  112. Style="{StaticResource TextBlockStyle}"
  113. Text="Chains"/>
  114. <emoji:TextBlock
  115. Style="{StaticResource TextBlockSmallStyle}"
  116. Text="{Binding Chains}"/>
  117. </StackPanel>
  118. </StackPanel>
  119. </Grid>
  120. </Window>