@@ -34,9 +34,14 @@ public sealed class MarkdownThemes : DependencyObject
3434
3535 public double H6FontSize { get ; set ; } = 12 ;
3636
37- public Brush HeadingForeground { get ; set ; } = Extensions . GetAccentColorBrush ( ) ;
37+ public Brush H1Foreground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
38+ public Brush H2Foreground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
39+ public Brush H3Foreground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
40+ public Brush H4Foreground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
41+ public Brush H5Foreground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
42+ public Brush H6Foreground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
3843
39- public FontWeight H1FontWeight { get ; set ; } = FontWeights . Bold ;
44+ public FontWeight H1FontWeight { get ; set ; } = FontWeights . SemiBold ;
4045
4146 public FontWeight H2FontWeight { get ; set ; } = FontWeights . Normal ;
4247
@@ -48,10 +53,10 @@ public sealed class MarkdownThemes : DependencyObject
4853
4954 public FontWeight H6FontWeight { get ; set ; } = FontWeights . Normal ;
5055
51- public Thickness H1Margin { get ; set ; } = new ( left : 0 , top : 14 , right : 0 , bottom : 0 ) ;
52- public Thickness H2Margin { get ; set ; } = new ( left : 0 , top : 14 , right : 0 , bottom : 0 ) ;
53- public Thickness H3Margin { get ; set ; } = new ( left : 0 , top : 14 , right : 0 , bottom : 0 ) ;
54- public Thickness H4Margin { get ; set ; } = new ( left : 0 , top : 14 , right : 0 , bottom : 0 ) ;
56+ public Thickness H1Margin { get ; set ; } = new ( left : 0 , top : 16 , right : 0 , bottom : 0 ) ;
57+ public Thickness H2Margin { get ; set ; } = new ( left : 0 , top : 16 , right : 0 , bottom : 0 ) ;
58+ public Thickness H3Margin { get ; set ; } = new ( left : 0 , top : 16 , right : 0 , bottom : 0 ) ;
59+ public Thickness H4Margin { get ; set ; } = new ( left : 0 , top : 16 , right : 0 , bottom : 0 ) ;
5560 public Thickness H5Margin { get ; set ; } = new ( left : 0 , top : 8 , right : 0 , bottom : 0 ) ;
5661 public Thickness H6Margin { get ; set ; } = new ( left : 0 , top : 8 , right : 0 , bottom : 0 ) ;
5762
@@ -73,4 +78,54 @@ public sealed class MarkdownThemes : DependencyObject
7378 public double InlineCodeFontSize { get ; set ; } = 10 ;
7479
7580 public FontWeight InlineCodeFontWeight { get ; set ; } = FontWeights . Normal ;
81+
82+ // Legacy parity properties (new)
83+ // Code block styling
84+ public Brush CodeBlockBackground { get ; set ; } = ( Brush ) Application . Current . Resources [ "ExpanderHeaderBackground" ] ;
85+ public Brush CodeBlockBorderBrush { get ; set ; } = new SolidColorBrush ( Colors . Gray ) ;
86+ public Thickness CodeBlockBorderThickness { get ; set ; } = new Thickness ( 1 ) ;
87+ public Thickness CodeBlockPadding { get ; set ; } = new Thickness ( 8 ) ;
88+ public Thickness CodeBlockMargin { get ; set ; } = new Thickness ( 0 , 8 , 0 , 8 ) ;
89+ public FontFamily CodeBlockFontFamily { get ; set ; } = new FontFamily ( "Consolas" ) ;
90+ public Brush CodeBlockForeground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
91+ public CornerRadius CodeBlockCornerRadius { get ; set ; } = new CornerRadius ( 4 ) ;
92+
93+ // Horizontal rule
94+ public Brush HorizontalRuleBrush { get ; set ; } = new SolidColorBrush ( Colors . Gray ) ;
95+ public double HorizontalRuleThickness { get ; set ; } = 1.0 ;
96+ public Thickness HorizontalRuleMargin { get ; set ; } = new Thickness ( 0 , 12 , 0 , 12 ) ;
97+
98+ // Link styling
99+ public Brush LinkForeground { get ; set ; } = ( Brush ) Application . Current . Resources [ "AccentTextFillColorPrimaryBrush" ] ?? new SolidColorBrush ( Colors . DodgerBlue ) ;
100+
101+ // Paragraph / list
102+ public Thickness ParagraphMargin { get ; set ; } = new Thickness ( 0 , 8 , 0 , 8 ) ;
103+ public double ParagraphLineHeight { get ; set ; } = 0 ; // 0 = default
104+ public double ListBulletSpacing { get ; set ; } = 4 ; // spaces after bullet
105+ public double ListGutterWidth { get ; set ; } = 30 ; // indent delta per level
106+ public Thickness ListMargin { get ; set ; } = new Thickness ( 0 , 4 , 0 , 4 ) ;
107+
108+ // Quote styling
109+ public Brush QuoteBackground { get ; set ; } = new SolidColorBrush ( Colors . Transparent ) ;
110+ public Brush QuoteBorderBrush { get ; set ; } = new SolidColorBrush ( Colors . Gray ) ;
111+ public Thickness QuoteBorderThickness { get ; set ; } = new Thickness ( 4 , 0 , 0 , 0 ) ;
112+ public Brush QuoteForeground { get ; set ; } = ( Brush ) Application . Current . Resources [ "TextFillColorPrimaryBrush" ] ;
113+ public Thickness QuoteMargin { get ; set ; } = new Thickness ( 0 , 4 , 0 , 4 ) ;
114+ public Thickness QuotePadding { get ; set ; } = new Thickness ( 4 ) ;
115+ public CornerRadius QuoteCornerRadius { get ; set ; } = new CornerRadius ( 4 ) ;
116+
117+ // Image styling
118+ public double ImageMaxWidth { get ; set ; } = 0 ; // 0 = no constraint
119+ public double ImageMaxHeight { get ; set ; } = 0 ;
120+ public Stretch ImageStretch { get ; set ; } = Stretch . Uniform ;
121+
122+ // Table styling
123+ public Brush TableBorderBrush { get ; set ; } = new SolidColorBrush ( Colors . Gray ) ;
124+ public double TableBorderThickness { get ; set ; } = 1 ;
125+ public Thickness TableCellPadding { get ; set ; } = new Thickness ( 4 ) ;
126+ public Thickness TableMargin { get ; set ; } = new Thickness ( 0 , 10 , 0 , 10 ) ;
127+
128+ // YAML / not currently used - placeholders for parity
129+ public Brush YamlBorderBrush { get ; set ; } = new SolidColorBrush ( Colors . Gray ) ;
130+ public Thickness YamlBorderThickness { get ; set ; } = new Thickness ( 1 ) ;
76131}
0 commit comments