diff --git a/src/Core/src/Platform/Gtk/GtkCssExtensions.cs b/src/Core/src/Platform/Gtk/GtkCssExtensions.cs index d98d3ec89996..4f2abe4a08d3 100644 --- a/src/Core/src/Platform/Gtk/GtkCssExtensions.cs +++ b/src/Core/src/Platform/Gtk/GtkCssExtensions.cs @@ -21,7 +21,8 @@ public static string CssMainNode(this Gtk.Widget nativeView) case Gtk.ComboBox box: default: - mainNode = nativeView.StyleContext.Path.ToString().Split(':')[0]; + var pathSegments = nativeView.StyleContext.Path.ToString().Split(' '); + mainNode = pathSegments[pathSegments.Length - 1].Split(':')[0]; break; }