|
| 1 | +<ResourceDictionary xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| 3 | + <ControlTheme x:Key="TextBlockBaseStyle" |
| 4 | + TargetType="TextBlock"> |
| 5 | + <Setter Property="VerticalAlignment" |
| 6 | + Value="Center" /> |
| 7 | + <Setter Property="HorizontalAlignment" |
| 8 | + Value="Center" /> |
| 9 | + <Setter Property="Foreground" |
| 10 | + Value="{DynamicResource PrimaryTextBrush}" /> |
| 11 | + </ControlTheme> |
| 12 | + |
| 13 | + <ControlTheme x:Key="TextBlockDefault" |
| 14 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 15 | + TargetType="TextBlock" /> |
| 16 | + |
| 17 | + <ControlTheme x:Key="TextBlockDefaultAccent" |
| 18 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 19 | + TargetType="TextBlock"> |
| 20 | + <Setter Property="Foreground" |
| 21 | + Value="{DynamicResource AccentBrush}" /> |
| 22 | + </ControlTheme> |
| 23 | + |
| 24 | + <ControlTheme x:Key="TextBlockDefaultPrimary" |
| 25 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 26 | + TargetType="TextBlock"> |
| 27 | + <Setter Property="Foreground" |
| 28 | + Value="{DynamicResource PrimaryBrush}" /> |
| 29 | + </ControlTheme> |
| 30 | + |
| 31 | + <ControlTheme x:Key="TextBlockDefaultDanger" |
| 32 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 33 | + TargetType="TextBlock"> |
| 34 | + <Setter Property="Foreground" |
| 35 | + Value="{DynamicResource DangerBrush}" /> |
| 36 | + </ControlTheme> |
| 37 | + |
| 38 | + <ControlTheme x:Key="TextBlockDefaultWarning" |
| 39 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 40 | + TargetType="TextBlock"> |
| 41 | + <Setter Property="Foreground" |
| 42 | + Value="{DynamicResource WarningBrush}" /> |
| 43 | + </ControlTheme> |
| 44 | + |
| 45 | + <ControlTheme x:Key="TextBlockDefaultInfo" |
| 46 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 47 | + TargetType="TextBlock"> |
| 48 | + <Setter Property="Foreground" |
| 49 | + Value="{DynamicResource InfoBrush}" /> |
| 50 | + </ControlTheme> |
| 51 | + |
| 52 | + <ControlTheme x:Key="TextBlockDefaultSuccess" |
| 53 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 54 | + TargetType="TextBlock"> |
| 55 | + <Setter Property="Foreground" |
| 56 | + Value="{DynamicResource SuccessBrush}" /> |
| 57 | + </ControlTheme> |
| 58 | + |
| 59 | + <ControlTheme x:Key="TextBlockDefaultSecLight" |
| 60 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 61 | + TargetType="TextBlock"> |
| 62 | + <Setter Property="Foreground" |
| 63 | + Value="{DynamicResource SecondaryTextBrush}" /> |
| 64 | + </ControlTheme> |
| 65 | + |
| 66 | + <ControlTheme x:Key="TextBlockDefaultThiLight" |
| 67 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 68 | + TargetType="TextBlock"> |
| 69 | + <Setter Property="Foreground" |
| 70 | + Value="{DynamicResource ThirdlyTextBrush}" /> |
| 71 | + </ControlTheme> |
| 72 | + |
| 73 | + <ControlTheme x:Key="TextBlockLarge" |
| 74 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 75 | + TargetType="TextBlock"> |
| 76 | + <Setter Property="FontSize" |
| 77 | + Value="{StaticResource LargeFontSize}" /> |
| 78 | + </ControlTheme> |
| 79 | + |
| 80 | + <ControlTheme x:Key="TextBlockTitle" |
| 81 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 82 | + TargetType="TextBlock"> |
| 83 | + <Setter Property="FontSize" |
| 84 | + Value="{StaticResource HeadFontSize}" /> |
| 85 | + </ControlTheme> |
| 86 | + |
| 87 | + <ControlTheme x:Key="TextBlockSubTitle" |
| 88 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 89 | + TargetType="TextBlock"> |
| 90 | + <Setter Property="FontSize" |
| 91 | + Value="{StaticResource SubHeadFontSize}" /> |
| 92 | + </ControlTheme> |
| 93 | + |
| 94 | + <ControlTheme x:Key="TextBlockBoldBaseStyle" |
| 95 | + BasedOn="{StaticResource TextBlockBaseStyle}" |
| 96 | + TargetType="TextBlock"> |
| 97 | + <Setter Property="FontWeight" |
| 98 | + Value="Bold" /> |
| 99 | + </ControlTheme> |
| 100 | + |
| 101 | + <ControlTheme x:Key="TextBlockLargeBold" |
| 102 | + BasedOn="{StaticResource TextBlockBoldBaseStyle}" |
| 103 | + TargetType="TextBlock"> |
| 104 | + <Setter Property="FontSize" |
| 105 | + Value="{StaticResource LargeFontSize}" /> |
| 106 | + </ControlTheme> |
| 107 | + |
| 108 | + <ControlTheme x:Key="TextBlockTitleBold" |
| 109 | + BasedOn="{StaticResource TextBlockBoldBaseStyle}" |
| 110 | + TargetType="TextBlock"> |
| 111 | + <Setter Property="FontSize" |
| 112 | + Value="{StaticResource HeadFontSize}" /> |
| 113 | + </ControlTheme> |
| 114 | + |
| 115 | + <ControlTheme x:Key="TextBlockSubTitleBold" |
| 116 | + BasedOn="{StaticResource TextBlockBoldBaseStyle}" |
| 117 | + TargetType="TextBlock"> |
| 118 | + <Setter Property="FontSize" |
| 119 | + Value="{StaticResource SubHeadFontSize}" /> |
| 120 | + </ControlTheme> |
| 121 | + |
| 122 | + <ControlTheme x:Key="TextBlockDefaultBold" |
| 123 | + BasedOn="{StaticResource TextBlockBoldBaseStyle}" |
| 124 | + TargetType="TextBlock" /> |
| 125 | +</ResourceDictionary> |
0 commit comments