diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index bb3bbed..7002b53 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4034,6 +4034,11 @@ update_right_margin_colors (GtkSourceView *view)
 		view->priv->right_margin_line_color = gdk_rgba_copy (&color);
 		view->priv->right_margin_line_color->alpha =
 			RIGHT_MARGIN_LINE_ALPHA / 255.;
+
+		g_signal_connect (widget,
+				  "style-updated",
+				  G_CALLBACK (update_right_margin_colors),
+				  NULL);
 	}
 }
 
@@ -4085,6 +4090,11 @@ update_spaces_color (GtkSourceView *view)
 					     GTK_STATE_FLAG_INSENSITIVE,
 					     &color);
 		view->priv->spaces_color = gdk_rgba_copy (&color);
+
+		g_signal_connect (widget,
+				  "style-updated",
+				  G_CALLBACK (update_spaces_color),
+				  NULL);
 	}
 }
 
