diff --git a/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs b/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs
index 2625e265c6..71462f7118 100644
--- a/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs
+++ b/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs
@@ -21,6 +21,7 @@ public class ThemedDocumentControlHandler : ThemedContainerHandler
+ public override Color BackgroundColor
+ {
+ get => backgroundColor;
+ set
+ {
+ backgroundColor = value;
+ tabDrawable.Invalidate();
+ }
+ }
+
///
/// Gets or sets the disabled foreground color.
///
@@ -229,6 +241,7 @@ public ThemedDocumentControlHandler()
nextPrevWidth = 0;
startx = 0;
font = SystemFonts.Default();
+ backgroundColor = SystemColors.Control;
disabledForegroundColor = SystemColors.DisabledText;
closeBackgroundColor = SystemColors.Control;
closeHighlightBackgroundColor = SystemColors.Highlight;
@@ -596,7 +609,7 @@ void Drawable_Paint(object sender, PaintEventArgs e)
{
var g = e.Graphics;
- g.Clear(SystemColors.Control);
+ g.Clear(BackgroundColor);
var posx = nextPrevWidth + startx;