TextBlock.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <ControlTheme x:Key="SukiTextBlockStyle" TargetType="TextBlock">
  3. <Setter Property="FontSize" Value="14" />
  4. <Style Selector="^.h4">
  5. <Setter Property="Margin" Value="0 7 0 10" />
  6. <Setter Property="FontSize" Value="20" />
  7. </Style>
  8. <Style Selector="^.h3">
  9. <Setter Property="Margin" Value="0 10 0 15" />
  10. <Setter Property="FontWeight" Value="SemiBold" />
  11. <Setter Property="FontSize" Value="25" />
  12. </Style>
  13. <Style Selector="^.h2">
  14. <Setter Property="Margin" Value="0 12 0 20" />
  15. <Setter Property="FontWeight" Value="SemiBold" />
  16. <Setter Property="FontSize" Value="30" />
  17. </Style>
  18. <Style Selector="^.h1">
  19. <Setter Property="Margin" Value="0 20 0 30" />
  20. <Setter Property="FontWeight" Value="SemiBold" />
  21. <Setter Property="FontSize" Value="40" />
  22. </Style>
  23. <Style Selector="^.Caption">
  24. <Setter Property="Foreground" Value="{DynamicResource ThemeControlHighBrush}" />
  25. </Style>
  26. <Style Selector="^.Primary">
  27. <Setter Property="Foreground" Value="{DynamicResource SukiPrimaryColor}" />
  28. </Style>
  29. <Style Selector="^.Accent">
  30. <Setter Property="Foreground" Value="{DynamicResource SukiAccentColor}" />
  31. </Style>
  32. </ControlTheme>
  33. <ControlTheme x:Key="{x:Type TextBlock}"
  34. BasedOn="{StaticResource SukiTextBlockStyle}"
  35. TargetType="TextBlock" />
  36. </ResourceDictionary>