Styles1.axaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. <!-- Add Styles Here -->
  9. <Style Selector="Button">
  10. <Setter Property="Background" Value="#B44A45"></Setter>
  11. <Setter Property="Foreground" Value="White"></Setter>
  12. <Setter Property="FontFamily" Value="MontserratBold"></Setter>
  13. <Setter Property="FontSize" Value="16"/>
  14. <Setter Property="Padding" Value="16 16 16 16"/>
  15. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  16. </Style>
  17. <Style Selector="Button:pointerover/template/ContentPresenter#PART_ContentPresenter">
  18. <Setter Property="Background" Value="#E7332A"></Setter>
  19. <Setter Property="Foreground" Value="White"></Setter>
  20. <Setter Property="FontFamily" Value="MontserratBold"></Setter>
  21. <Setter Property="FontSize" Value="16"/>
  22. <Setter Property="Padding" Value="16 16 16 16"/>
  23. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  24. </Style>
  25. <Style Selector="Button.menuElement">
  26. <Setter Property="Background" Value="Transparent"></Setter>
  27. <Setter Property="Foreground" Value="White"></Setter>
  28. <Setter Property="FontSize" Value="20"/>
  29. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  30. <Setter Property="Padding" Value="0"/>
  31. </Style>
  32. <Style Selector="Button.menuElement:pointerover/template/ContentPresenter#PART_ContentPresenter">
  33. <Setter Property="Background" Value="Transparent"></Setter>
  34. <Setter Property="Foreground" Value="White"></Setter>
  35. <Setter Property="FontSize" Value="20"/>
  36. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  37. <Setter Property="Padding" Value="0"/>
  38. </Style>
  39. <Style Selector="Window">
  40. <Setter Property="FontSize" Value="24"/>
  41. <Setter Property="Foreground" Value="Black"/>
  42. <Setter Property="Background" Value="White"/>
  43. </Style>
  44. <Style Selector="TextBlock.titleStyle">
  45. <Setter Property="FontSize" Value="32"/>
  46. <Setter Property="Foreground" Value="Black"/>
  47. <Setter Property="TextWrapping" Value="Wrap"/>
  48. </Style>
  49. <Style Selector="TextBlock.litleText">
  50. <Setter Property="FontSize" Value="16"/>
  51. <Setter Property="TextWrapping" Value="Wrap"/>
  52. </Style>
  53. <Style Selector="TextBlock.mediumText">
  54. <Setter Property="FontSize" Value="20"/>
  55. <Setter Property="TextWrapping" Value="Wrap"/>
  56. </Style>
  57. <Style Selector="TextBlock.titleStyleLight">
  58. <Setter Property="FontSize" Value="32"/>
  59. <Setter Property="Foreground" Value="White"/>
  60. <Setter Property="TextWrapping" Value="Wrap"/>
  61. </Style>
  62. <Style Selector="TextBlock.litleTextLight">
  63. <Setter Property="FontSize" Value="16"/>
  64. <Setter Property="Foreground" Value="White"/>
  65. <Setter Property="TextWrapping" Value="Wrap"/>
  66. </Style>
  67. <Style Selector="TextBlock.mediumTextLight">
  68. <Setter Property="FontSize" Value="20"/>
  69. <Setter Property="Foreground" Value="White"/>
  70. <Setter Property="TextWrapping" Value="Wrap"/>
  71. </Style>
  72. <Style Selector="TextBox">
  73. <Setter Property="FontSize" Value="16"/>
  74. <Setter Property="Background" Value="#ECF2F7"/>
  75. <Setter Property="BorderBrush" Value="Transparent"/>
  76. <Setter Property="CornerRadius" Value="10"/>
  77. <Setter Property="Padding" Value="16 16 16 16"/>
  78. <Setter Property="Foreground" Value="Black"/>
  79. </Style>
  80. <Style Selector="TextBox:focus/template/Border">
  81. <Setter Property="Background" Value="#ECF2F7"/>
  82. <Setter Property="BorderBrush" Value="Transparent"/>
  83. <Setter Property="CornerRadius" Value="10"/>
  84. </Style>
  85. <Style Selector="TextBox:pointerover/template/Border">
  86. <Setter Property="Background" Value="#ECF2F7"/>
  87. <Setter Property="BorderBrush" Value="Transparent"/>
  88. <Setter Property="CornerRadius" Value="10"/>
  89. </Style>
  90. <Style Selector="StackPanel.backgroundStackPanel">
  91. <Setter Property="Background" Value="#B44A45"/>
  92. </Style>
  93. <Style Selector="ListBox">
  94. <Setter Property="Background" Value="Transparent"/>
  95. <Setter Property="BorderBrush" Value="Transparent"/>
  96. </Style>
  97. <Style Selector="ListBox:pointerover/template/ContentPresenter">
  98. <Setter Property="Background" Value="Transparent"/>
  99. <Setter Property="BorderBrush" Value="Transparent"/>
  100. </Style>
  101. <Style Selector="ListBox:focus/template/ContentPresenter">
  102. <Setter Property="Background" Value="Transparent"/>
  103. <Setter Property="BorderBrush" Value="Transparent"/>
  104. </Style>
  105. <Style Selector="ListBox:pressed/template/ContentPresenter">
  106. <Setter Property="Background" Value="Transparent"/>
  107. <Setter Property="BorderBrush" Value="Transparent"/>
  108. </Style>
  109. </Styles>