AppStyles.xaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Color x:Key="PrimaryColor">#24435C</Color>
  4. <Color x:Key="PrimaryDarkColor">#1A2F42</Color>
  5. <Color x:Key="AccentColor">#2F7D6D</Color>
  6. <Color x:Key="AccentHoverColor">#25695B</Color>
  7. <Color x:Key="BackgroundColor">#EEF2F5</Color>
  8. <Color x:Key="PanelColor">#FFFFFF</Color>
  9. <Color x:Key="TextColor">#1F2933</Color>
  10. <Color x:Key="MutedTextColor">#5A6875</Color>
  11. <Color x:Key="BorderColor">#C9D3DC</Color>
  12. <Color x:Key="ErrorColor">#C43D3D</Color>
  13. <SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource PrimaryColor}" />
  14. <SolidColorBrush x:Key="PrimaryDarkBrush" Color="{StaticResource PrimaryDarkColor}" />
  15. <SolidColorBrush x:Key="AccentBrush" Color="{StaticResource AccentColor}" />
  16. <SolidColorBrush x:Key="AccentHoverBrush" Color="{StaticResource AccentHoverColor}" />
  17. <SolidColorBrush x:Key="BackgroundBrush" Color="{StaticResource BackgroundColor}" />
  18. <SolidColorBrush x:Key="PanelBrush" Color="{StaticResource PanelColor}" />
  19. <SolidColorBrush x:Key="TextBrush" Color="{StaticResource TextColor}" />
  20. <SolidColorBrush x:Key="MutedTextBrush" Color="{StaticResource MutedTextColor}" />
  21. <SolidColorBrush x:Key="BorderBrush" Color="{StaticResource BorderColor}" />
  22. <SolidColorBrush x:Key="ErrorBrush" Color="{StaticResource ErrorColor}" />
  23. <Style TargetType="Window">
  24. <Setter Property="FontFamily" Value="Segoe UI" />
  25. <Setter Property="FontSize" Value="14" />
  26. <Setter Property="Background" Value="{StaticResource BackgroundBrush}" />
  27. </Style>
  28. <Style TargetType="Page">
  29. <Setter Property="FontFamily" Value="Segoe UI" />
  30. <Setter Property="FontSize" Value="14" />
  31. <Setter Property="Background" Value="{StaticResource BackgroundBrush}" />
  32. <Setter Property="UseLayoutRounding" Value="True" />
  33. </Style>
  34. <Style TargetType="TextBlock">
  35. <Setter Property="Foreground" Value="{StaticResource TextBrush}" />
  36. <Setter Property="Margin" Value="0,0,0,6" />
  37. </Style>
  38. <Style x:Key="PageTitleStyle" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
  39. <Setter Property="FontSize" Value="24" />
  40. <Setter Property="FontWeight" Value="SemiBold" />
  41. <Setter Property="Margin" Value="0,0,0,10" />
  42. </Style>
  43. <Style TargetType="TextBox">
  44. <Setter Property="Height" Value="34" />
  45. <Setter Property="Margin" Value="0,0,0,10" />
  46. <Setter Property="Padding" Value="8,4" />
  47. <Setter Property="Background" Value="White" />
  48. <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
  49. <Setter Property="BorderThickness" Value="1" />
  50. <Setter Property="VerticalContentAlignment" Value="Center" />
  51. </Style>
  52. <Style TargetType="PasswordBox">
  53. <Setter Property="Height" Value="34" />
  54. <Setter Property="Margin" Value="0,0,0,10" />
  55. <Setter Property="Padding" Value="8,4" />
  56. <Setter Property="Background" Value="White" />
  57. <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
  58. <Setter Property="BorderThickness" Value="1" />
  59. <Setter Property="VerticalContentAlignment" Value="Center" />
  60. </Style>
  61. <Style TargetType="ComboBox">
  62. <Setter Property="Height" Value="34" />
  63. <Setter Property="Margin" Value="0,0,0,10" />
  64. <Setter Property="Padding" Value="8,3" />
  65. <Setter Property="Background" Value="White" />
  66. <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
  67. <Setter Property="BorderThickness" Value="1" />
  68. <Setter Property="VerticalContentAlignment" Value="Center" />
  69. </Style>
  70. <Style TargetType="ComboBoxItem">
  71. <Setter Property="Padding" Value="8,5" />
  72. <Setter Property="Foreground" Value="{StaticResource TextBrush}" />
  73. </Style>
  74. <Style TargetType="Button">
  75. <Setter Property="Height" Value="34" />
  76. <Setter Property="MinWidth" Value="110" />
  77. <Setter Property="Margin" Value="0,0,10,8" />
  78. <Setter Property="Padding" Value="14,4" />
  79. <Setter Property="Background" Value="{StaticResource AccentBrush}" />
  80. <Setter Property="Foreground" Value="White" />
  81. <Setter Property="BorderThickness" Value="0" />
  82. <Setter Property="Cursor" Value="Hand" />
  83. <Setter Property="FontWeight" Value="SemiBold" />
  84. <Style.Triggers>
  85. <Trigger Property="IsMouseOver" Value="True">
  86. <Setter Property="Background" Value="{StaticResource AccentHoverBrush}" />
  87. </Trigger>
  88. <Trigger Property="IsEnabled" Value="False">
  89. <Setter Property="Background" Value="#B6C0C8" />
  90. <Setter Property="Foreground" Value="#F4F6F8" />
  91. </Trigger>
  92. </Style.Triggers>
  93. </Style>
  94. <Style x:Key="MenuButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
  95. <Setter Property="Height" Value="42" />
  96. <Setter Property="MinWidth" Value="190" />
  97. <Setter Property="Margin" Value="0,0,0,10" />
  98. <Setter Property="HorizontalContentAlignment" Value="Left" />
  99. <Setter Property="Padding" Value="14,4" />
  100. <Setter Property="Background" Value="{StaticResource PrimaryBrush}" />
  101. <Setter Property="FontWeight" Value="Normal" />
  102. <Style.Triggers>
  103. <Trigger Property="IsMouseOver" Value="True">
  104. <Setter Property="Background" Value="{StaticResource PrimaryDarkBrush}" />
  105. </Trigger>
  106. </Style.Triggers>
  107. </Style>
  108. <Style TargetType="DataGrid">
  109. <Setter Property="AutoGenerateColumns" Value="False" />
  110. <Setter Property="IsReadOnly" Value="True" />
  111. <Setter Property="SelectionMode" Value="Single" />
  112. <Setter Property="SelectionUnit" Value="FullRow" />
  113. <Setter Property="Margin" Value="0,10,0,0" />
  114. <Setter Property="MinHeight" Value="280" />
  115. <Setter Property="GridLinesVisibility" Value="Horizontal" />
  116. <Setter Property="AlternatingRowBackground" Value="#F3F7FA" />
  117. <Setter Property="Background" Value="{StaticResource PanelBrush}" />
  118. <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
  119. <Setter Property="BorderThickness" Value="1" />
  120. <Setter Property="RowHeight" Value="32" />
  121. <Setter Property="HeadersVisibility" Value="Column" />
  122. <Setter Property="CanUserAddRows" Value="False" />
  123. </Style>
  124. <Style TargetType="DataGridColumnHeader">
  125. <Setter Property="Background" Value="#DDE7EE" />
  126. <Setter Property="Foreground" Value="{StaticResource TextBrush}" />
  127. <Setter Property="FontWeight" Value="SemiBold" />
  128. <Setter Property="Padding" Value="8,6" />
  129. <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
  130. <Setter Property="BorderThickness" Value="0,0,1,1" />
  131. </Style>
  132. </ResourceDictionary>