summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
Diffstat (limited to 'docview')
-rw-r--r--docview/components/richtext/RichTextStyleUnit.pas2
-rw-r--r--docview/components/richtext/RichTextView.pas2
2 files changed, 2 insertions, 2 deletions
diff --git a/docview/components/richtext/RichTextStyleUnit.pas b/docview/components/richtext/RichTextStyleUnit.pas
index 57f904df..e0cc3b62 100644
--- a/docview/components/richtext/RichTextStyleUnit.pas
+++ b/docview/components/richtext/RichTextStyleUnit.pas
@@ -363,7 +363,7 @@ begin
FHeading3Font := fpgGetFont(DefaultTopicFontName + '-10:bold');
FDefaultColor := clBlack;
- FDefaultBackgroundColor := clWhite;
+ FDefaultBackgroundColor := clBoxColor;
FDefaultAlignment := taLeft;
FDefaultWrap := true;
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas
index db8f8d86..fe38017f 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -692,7 +692,7 @@ begin
Canvas.ClearClipRect;
DrawBorder;
DrawRect := GetDrawRect;
- Canvas.Color := BackgroundColor;
+ Canvas.Color := RichTextSettings.DefaultBackgroundColor;
Canvas.FillRectangle(DrawRect);
TextRect := GetTextAreaRect;