ElementStyles.axaml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <Styles xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Design.PreviewWith>
  4. <Border Padding="20">
  5. <!-- Add Controls for Previewer Here -->
  6. </Border>
  7. </Design.PreviewWith>
  8. <!--Используемые цвета:
  9. #FFFCF2 - Floral white - Белый с цветочным
  10. #CCC5B9 - Timberwolf - Лесной волк
  11. #403D39 - Black olive - Черный оливковый
  12. #252422 - Marie black - Мари блэк
  13. #EB5E28 - Flame - Пламя-->
  14. <!--Общее выравание текста-->
  15. <Style Selector="TextBlock">
  16. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  17. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  18. </Style>
  19. <!--Основная стекпанель-->
  20. <Style Selector="StackPanel.firstInf">
  21. <Setter Property="Background" Value="#CCC5B9"></Setter>
  22. </Style>
  23. <!--Стекпанель поля ввода-->
  24. <Style Selector="StackPanel.rowGetUsData">
  25. <Setter Property="Margin" Value="0, 5"></Setter>
  26. </Style>
  27. <!--Стиль для заголовка ввода даты-->
  28. <Style Selector="TextBlock.mainText">
  29. <Setter Property="FontSize" Value="24"></Setter>
  30. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  31. <Setter Property="Padding" Value="10"></Setter>
  32. <Setter Property="Foreground" Value="#403D39"></Setter>
  33. <Setter Property="FontWeight" Value="Bold"></Setter>
  34. </Style>
  35. <!--Стиль календаря-->
  36. <Style Selector="DatePicker.getDate" >
  37. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  38. <Setter Property="BorderBrush" Value="#252422"></Setter>
  39. <Setter Property="BorderThickness" Value="2.5"></Setter>
  40. <Setter Property="Foreground" Value ="#403D39"></Setter>
  41. <Setter Property="Width" Value="360"></Setter>
  42. <Setter Property="Height" Value="40"></Setter>
  43. <Setter Property="FontSize" Value="15"></Setter>
  44. </Style>
  45. <!--Стиль кнопки сохранения данных: просто-->
  46. <Style Selector="Button.saveData">
  47. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  48. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  49. <Setter Property="BorderBrush" Value="#252422"></Setter>
  50. <Setter Property="BorderThickness" Value="1.5"></Setter>
  51. <Setter Property="Foreground" Value ="#403D39"></Setter>
  52. <Setter Property="FontSize" Value="15"></Setter>
  53. <Setter Property="FontWeight" Value="Bold"></Setter>
  54. <Setter Property="Background" Value="#EB5E28"></Setter>
  55. <Setter Property="Margin" Value="0, 5"></Setter>
  56. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  57. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  58. </Style>
  59. <!--Стиль кнопки сохранения данных: при наведении-->
  60. <Style Selector="Button.saveData:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  61. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  62. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  63. <Setter Property="BorderBrush" Value="#CCC5B9"></Setter>
  64. <Setter Property="BorderThickness" Value="1.5"></Setter>
  65. <Setter Property="Foreground" Value ="#CCC5B9"></Setter>
  66. <Setter Property="FontSize" Value="15"></Setter>
  67. <Setter Property="FontWeight" Value="Bold"></Setter>
  68. <Setter Property="Background" Value="#EB5E28"></Setter>
  69. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  70. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  71. </Style>
  72. <!--стиль ошибки (поле обработки) (по умолчинию скрытый)-->
  73. <Style Selector="StackPanel.printError">
  74. <Setter Property="Margin" Value="0, 5"></Setter>
  75. <Setter Property="IsVisible" Value="False"></Setter>
  76. </Style>
  77. <!--стиль ошибки (текст ошибки)-->
  78. <Style Selector="TextBlock.textError">
  79. <Setter Property="FontSize" Value="15"></Setter>
  80. <Setter Property="Foreground" Value="#EB5E28"></Setter>
  81. <Setter Property="TextWrapping" Value="Wrap"/>
  82. </Style>
  83. <!--стиль текста вывода данных пользователя (по умолчинию скрытый)-->
  84. <!--Общее поле (по умолчинию скрытый)-->
  85. <Style Selector="StackPanel.infoForUser">
  86. <Setter Property="Margin" Value="0, 5"></Setter>
  87. <Setter Property="IsVisible" Value="False"></Setter>
  88. </Style>
  89. <!--Заголовк-->
  90. <Style Selector="TextBlock.headerForInfo">
  91. <Setter Property="FontSize" Value="20"></Setter>
  92. <Setter Property="Foreground" Value="#252422"></Setter>
  93. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  94. <Setter Property="FontWeight" Value="Medium"></Setter>
  95. </Style>
  96. <!--Поле для вывода иноформации-->
  97. <Style Selector="StackPanel.info">
  98. <Setter Property="Margin" Value="0, 5"></Setter>
  99. </Style>
  100. <!--Поле для вывода иноформации (текст)-->
  101. <Style Selector="TextBlock.printInfo">
  102. <Setter Property="FontSize" Value="15"></Setter>
  103. <Setter Property="Foreground" Value="#403D39"></Setter>
  104. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  105. <Setter Property="Padding" Value="10"></Setter>
  106. <Setter Property="TextWrapping" Value="Wrap"/>
  107. </Style>
  108. <!--гороскоп-->
  109. <!--Общее поле-->
  110. <Style Selector="StackPanel.horoscope">
  111. <Setter Property="Margin" Value="0, 5"></Setter>
  112. </Style>
  113. <!--Заголовок-->
  114. <Style Selector="TextBlock.horoscopeHeaderText">
  115. <Setter Property="FontSize" Value="20"></Setter>
  116. <Setter Property="Foreground" Value="#252422"></Setter>
  117. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  118. <Setter Property="FontWeight" Value="Medium"></Setter>
  119. </Style>
  120. <!--Поле кнопок-->
  121. <Style Selector="StackPanel.horoscopeBtns">
  122. <Setter Property="Margin" Value="10, 5"></Setter>
  123. <Setter Property="Orientation" Value="Horizontal"></Setter>
  124. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  125. </Style>
  126. <!--Стиль кнопки гороскопа: просто-->
  127. <Style Selector="Button.horBtns">
  128. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  129. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  130. <Setter Property="BorderBrush" Value="#252422"></Setter>
  131. <Setter Property="BorderThickness" Value="1.5"></Setter>
  132. <Setter Property="Foreground" Value ="#403D39"></Setter>
  133. <Setter Property="FontSize" Value="15"></Setter>
  134. <Setter Property="FontWeight" Value="Bold"></Setter>
  135. <Setter Property="Background" Value="#EB5E28"></Setter>
  136. <Setter Property="Margin" Value="10, 5"></Setter>
  137. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  138. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  139. </Style>
  140. <!--Стиль кнопки гороскопа: при наведении-->
  141. <Style Selector="Button.horBtns:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  142. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  143. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  144. <Setter Property="BorderBrush" Value="#CCC5B9"></Setter>
  145. <Setter Property="BorderThickness" Value="1.5"></Setter>
  146. <Setter Property="Foreground" Value ="#CCC5B9"></Setter>
  147. <Setter Property="FontSize" Value="15"></Setter>
  148. <Setter Property="FontWeight" Value="Bold"></Setter>
  149. <Setter Property="Background" Value="#EB5E28"></Setter>
  150. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  151. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  152. </Style>
  153. <!--Поле результата (по умолчинию скрытый)-->
  154. <Style Selector="StackPanel.horoscopeResult">
  155. <Setter Property="Margin" Value="0, 5"></Setter>
  156. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  157. <Setter Property="IsVisible" Value="False"></Setter>
  158. </Style>
  159. <!--Заголовок результата-->
  160. <Style Selector="TextBlock.horoscopeHeaderResult">
  161. <Setter Property="FontSize" Value="20"></Setter>
  162. <Setter Property="Foreground" Value="#252422"></Setter>
  163. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  164. <Setter Property="FontWeight" Value="Bold"></Setter>
  165. </Style>
  166. <!--текст результата-->
  167. <Style Selector="TextBlock.horoscopeTextResult">
  168. <Setter Property="FontSize" Value="35"></Setter>
  169. <Setter Property="Foreground" Value="#EB5E28"></Setter>
  170. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  171. <Setter Property="FontWeight" Value="Bold"></Setter>
  172. <Setter Property="TextWrapping" Value="Wrap"/>
  173. </Style>
  174. </Styles>