ModernSettingsView.xaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.ModernSettingsView">
  4. <ScrollViewer HorizontalScrollBarVisibility="Disabled">
  5. <StackPanel Background="#f5f8f8">
  6. <!-- Profile row -->
  7. <Border Background="White" Padding="16">
  8. <StackPanel Orientation="Horizontal" Spacing="14">
  9. <Border Width="52" Height="52" CornerRadius="999" ClipToBounds="True" Background="#8a9ba3">
  10. <Image Source="avares://ControlCatalog/Assets/ModernApp/avatar.jpg"
  11. Stretch="UniformToFill"/>
  12. </Border>
  13. <StackPanel VerticalAlignment="Center" Spacing="2">
  14. <TextBlock Text="Alex Johnson" FontSize="15"
  15. FontWeight="SemiBold" Foreground="#0d1f22"/>
  16. <TextBlock Text="[email protected]" FontSize="12" Foreground="#8a9ba3"/>
  17. </StackPanel>
  18. </StackPanel>
  19. </Border>
  20. <Border Height="8"/>
  21. <!-- Account section -->
  22. <StackPanel Spacing="0">
  23. <Border Padding="16,16,16,6">
  24. <TextBlock Text="ACCOUNT" FontSize="11" FontWeight="SemiBold"
  25. Foreground="#8a9ba3"/>
  26. </Border>
  27. <!-- Notifications -->
  28. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  29. <DockPanel Background="White">
  30. <StackPanel Orientation="Horizontal" Spacing="6"
  31. VerticalAlignment="Center" Margin="0,0,12,0"
  32. DockPanel.Dock="Right">
  33. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  34. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  35. </StackPanel>
  36. <Border Padding="16,14">
  37. <TextBlock Text="Notifications" FontSize="14" Foreground="#0d1f22"/>
  38. </Border>
  39. </DockPanel>
  40. </Border>
  41. <!-- Privacy -->
  42. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  43. <DockPanel Background="White">
  44. <StackPanel Orientation="Horizontal" Spacing="6"
  45. VerticalAlignment="Center" Margin="0,0,12,0"
  46. DockPanel.Dock="Right">
  47. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  48. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  49. </StackPanel>
  50. <Border Padding="16,14">
  51. <TextBlock Text="Privacy" FontSize="14" Foreground="#0d1f22"/>
  52. </Border>
  53. </DockPanel>
  54. </Border>
  55. <!-- Security -->
  56. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  57. <DockPanel Background="White">
  58. <StackPanel Orientation="Horizontal" Spacing="6"
  59. VerticalAlignment="Center" Margin="0,0,12,0"
  60. DockPanel.Dock="Right">
  61. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  62. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  63. </StackPanel>
  64. <Border Padding="16,14">
  65. <TextBlock Text="Security" FontSize="14" Foreground="#0d1f22"/>
  66. </Border>
  67. </DockPanel>
  68. </Border>
  69. </StackPanel>
  70. <Border Height="8"/>
  71. <!-- Preferences section -->
  72. <StackPanel Spacing="0">
  73. <Border Padding="16,16,16,6">
  74. <TextBlock Text="PREFERENCES" FontSize="11" FontWeight="SemiBold"
  75. Foreground="#8a9ba3"/>
  76. </Border>
  77. <!-- Dark Mode with toggle -->
  78. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  79. <DockPanel Background="White">
  80. <CheckBox IsChecked="False"
  81. DockPanel.Dock="Right"
  82. Margin="0,0,12,0"
  83. VerticalAlignment="Center"/>
  84. <Border Padding="16,14">
  85. <TextBlock Text="Dark Mode" FontSize="14" Foreground="#0d1f22"/>
  86. </Border>
  87. </DockPanel>
  88. </Border>
  89. <!-- Language -->
  90. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  91. <DockPanel Background="White">
  92. <StackPanel Orientation="Horizontal" Spacing="6"
  93. VerticalAlignment="Center" Margin="0,0,12,0"
  94. DockPanel.Dock="Right">
  95. <TextBlock Text="English" FontSize="12" Foreground="#8a9ba3"
  96. VerticalAlignment="Center"/>
  97. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  98. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  99. </StackPanel>
  100. <Border Padding="16,14">
  101. <TextBlock Text="Language" FontSize="14" Foreground="#0d1f22"/>
  102. </Border>
  103. </DockPanel>
  104. </Border>
  105. </StackPanel>
  106. <Border Height="8"/>
  107. <!-- Support section -->
  108. <StackPanel Spacing="0">
  109. <Border Padding="16,16,16,6">
  110. <TextBlock Text="SUPPORT" FontSize="11" FontWeight="SemiBold"
  111. Foreground="#8a9ba3"/>
  112. </Border>
  113. <!-- About -->
  114. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  115. <DockPanel Background="White">
  116. <StackPanel Orientation="Horizontal" Spacing="6"
  117. VerticalAlignment="Center" Margin="0,0,12,0"
  118. DockPanel.Dock="Right">
  119. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  120. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  121. </StackPanel>
  122. <Border Padding="16,14">
  123. <TextBlock Text="About" FontSize="14" Foreground="#0d1f22"/>
  124. </Border>
  125. </DockPanel>
  126. </Border>
  127. <!-- Help Center -->
  128. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  129. <DockPanel Background="White">
  130. <StackPanel Orientation="Horizontal" Spacing="6"
  131. VerticalAlignment="Center" Margin="0,0,12,0"
  132. DockPanel.Dock="Right">
  133. <TextBlock Text="&#x2197;" FontSize="12" Foreground="#8a9ba3"
  134. VerticalAlignment="Center"/>
  135. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  136. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  137. </StackPanel>
  138. <Border Padding="16,14">
  139. <TextBlock Text="Help Center" FontSize="14" Foreground="#0d1f22"/>
  140. </Border>
  141. </DockPanel>
  142. </Border>
  143. <!-- Logout -->
  144. <Border BorderBrush="#dde6e9" BorderThickness="0,0,0,1">
  145. <DockPanel Background="White">
  146. <StackPanel Orientation="Horizontal" Spacing="6"
  147. VerticalAlignment="Center" Margin="0,0,12,0"
  148. DockPanel.Dock="Right">
  149. <PathIcon Width="16" Height="16" Foreground="#8a9ba3"
  150. Data="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
  151. </StackPanel>
  152. <Border Padding="16,14">
  153. <TextBlock Text="Logout" FontSize="14" Foreground="#0d1f22"/>
  154. </Border>
  155. </DockPanel>
  156. </Border>
  157. </StackPanel>
  158. <!-- Version label -->
  159. <Border Padding="16,16">
  160. <TextBlock Text="Version 2.4.1 (Build 402)"
  161. FontSize="11" Foreground="#8a9ba3"
  162. HorizontalAlignment="Center"/>
  163. </Border>
  164. </StackPanel>
  165. </ScrollViewer>
  166. </UserControl>