Skip to content

Commit 28638dd

Browse files
committed
Updating default styling
1 parent c72fa2b commit 28638dd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

components/MarkdownTextBlock/src/MarkdownThemes.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public sealed class MarkdownThemes : DependencyObject
4343

4444
public FontWeight H1FontWeight { get; set; } = FontWeights.SemiBold;
4545

46-
public FontWeight H2FontWeight { get; set; } = FontWeights.Normal;
46+
public FontWeight H2FontWeight { get; set; } = FontWeights.SemiBold;
4747

48-
public FontWeight H3FontWeight { get; set; } = FontWeights.Normal;
48+
public FontWeight H3FontWeight { get; set; } = FontWeights.SemiBold;
4949

50-
public FontWeight H4FontWeight { get; set;} = FontWeights.Normal;
50+
public FontWeight H4FontWeight { get; set;} = FontWeights.SemiBold;
5151

52-
public FontWeight H5FontWeight { get; set; } = FontWeights.Normal;
52+
public FontWeight H5FontWeight { get; set; } = FontWeights.SemiBold;
5353

54-
public FontWeight H6FontWeight { get; set; } = FontWeights.Normal;
54+
public FontWeight H6FontWeight { get; set; } = FontWeights.SemiBold;
5555

5656
public Thickness H1Margin { get; set; } = new(left: 0, top: 16, right: 0, bottom: 0);
5757
public Thickness H2Margin { get; set; } = new(left: 0, top: 16, right: 0, bottom: 0);
@@ -64,10 +64,10 @@ public sealed class MarkdownThemes : DependencyObject
6464

6565
public Brush TableHeadingBackground { get; set; } = Extensions.GetAccentColorBrush(Windows.UI.ViewManagement.UIColorType.AccentLight3);
6666

67-
public Brush InlineCodeBackground { get; set; } = (Brush)Application.Current.Resources["ExpanderHeaderBackground"];
67+
public Brush InlineCodeBackground { get; set; } = (Brush)Application.Current.Resources["CardBackgroundFillColorSecondaryBrush"];
6868
public Brush InlineCodeForeground { get; set; } = (Brush)Application.Current.Resources["TextFillColorPrimaryBrush"];
6969

70-
public Brush InlineCodeBorderBrush { get; set; } = new SolidColorBrush(Colors.Gray);
70+
public Brush InlineCodeBorderBrush { get; set; } = (Brush)Application.Current.Resources["CardStrokeColorDefaultBrush"];
7171

7272
public Thickness InlineCodeBorderThickness { get; set; } = new (1);
7373

@@ -83,8 +83,8 @@ public sealed class MarkdownThemes : DependencyObject
8383

8484
// Legacy parity properties (new)
8585
// Code block styling
86-
public Brush CodeBlockBackground { get; set; } = (Brush)Application.Current.Resources["ExpanderHeaderBackground"];
87-
public Brush CodeBlockBorderBrush { get; set; } = new SolidColorBrush(Colors.Gray);
86+
public Brush CodeBlockBackground { get; set; } = (Brush)Application.Current.Resources["CardBackgroundFillColorSecondaryBrush"];
87+
public Brush CodeBlockBorderBrush { get; set; } = (Brush)Application.Current.Resources["CardStrokeColorDefaultBrush"];
8888
public Thickness CodeBlockBorderThickness { get; set; } = new Thickness(1);
8989
public Thickness CodeBlockPadding { get; set; } = new Thickness(8);
9090
public Thickness CodeBlockMargin { get; set; } = new Thickness(0, 8, 0, 8);
@@ -93,7 +93,7 @@ public sealed class MarkdownThemes : DependencyObject
9393
public CornerRadius CodeBlockCornerRadius { get; set; } = new CornerRadius(4);
9494

9595
// Horizontal rule
96-
public Brush HorizontalRuleBrush { get; set; } = new SolidColorBrush(Colors.Gray);
96+
public Brush HorizontalRuleBrush { get; set; } = (Brush)Application.Current.Resources["DividerStrokeColorDefaultBrush"];
9797
public double HorizontalRuleThickness { get; set; } = 1.0;
9898
public Thickness HorizontalRuleMargin { get; set; } = new Thickness(0, 12, 0, 12);
9999

@@ -122,12 +122,12 @@ public sealed class MarkdownThemes : DependencyObject
122122
public Stretch ImageStretch { get; set; } = Stretch.Uniform;
123123

124124
// Table styling
125-
public Brush TableBorderBrush { get; set; } = new SolidColorBrush(Colors.Gray);
125+
public Brush TableBorderBrush { get; set; } = (Brush)Application.Current.Resources["CardStrokeColorDefaultBrush"];
126126
public double TableBorderThickness { get; set; } = 1;
127127
public Thickness TableCellPadding { get; set; } = new Thickness(4);
128128
public Thickness TableMargin { get; set; } = new Thickness(0, 10, 0, 10);
129129

130130
// YAML / not currently used - placeholders for parity
131-
public Brush YamlBorderBrush { get; set; } = new SolidColorBrush(Colors.Gray);
131+
public Brush YamlBorderBrush { get; set; } = (Brush)Application.Current.Resources["CardStrokeColorDefaultBrush"];
132132
public Thickness YamlBorderThickness { get; set; } = new Thickness(1);
133133
}

0 commit comments

Comments
 (0)