App.axaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Application xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="AvaloniaApplication3.App"
  4. xmlns:local="using:AvaloniaApplication3"
  5. RequestedThemeVariant="Default">
  6. <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
  7. <Application.DataTemplates>
  8. <local:ViewLocator/>
  9. </Application.DataTemplates>
  10. <Application.Styles>
  11. <FluentTheme />
  12. <Style Selector="Button.blueBtn">
  13. <Setter Property="Background" Value="Blue"></Setter>
  14. <Setter Property="Foreground" Value="White"></Setter>
  15. </Style>
  16. <Style Selector="TextBlock">
  17. <Setter Property="Foreground" Value="Black"></Setter>
  18. <Setter Property="FontSize" Value="16"/>
  19. </Style>
  20. <Style Selector="TextBlock.title">
  21. <Setter Property="Foreground" Value="Black"></Setter>
  22. <Setter Property="FontSize" Value="30"/>
  23. <Setter Property="FontWeight" Value="SemiBold"/>
  24. </Style>
  25. <Style Selector="TextBlock.error">
  26. <Setter Property="Foreground" Value="Red"></Setter>
  27. <Setter Property="FontWeight" Value="SemiBold"/>
  28. </Style>
  29. <Style Selector="StackPanel.mainWinImgPanel">
  30. <Setter Property="Background" Value="#E2F0FF"/>
  31. </Style>
  32. </Application.Styles>
  33. </Application>