I know this is an old question, but lately I've been struggling with topics.
It turns out that when you start building the Gtk # application with Xamarin, there will be problems with the themes, because it seems that some kind of "Windows-like" theme is being inserted into the code.
When starting the application from Xamarin Studio, depending on the .Net framework (Microsoft.NET 4.5, Mono 3.3.0, Mono 4.0.1), the behavior was different. And I had a warning with Mono 3.3.0 saying that the "Xamarin" engine was not found.
I ended up with the following code:
Application.Init (); Gtk.Settings.Default.ThemeName = "Theme/gtk-2.0/gtkrc"; Gtk.Rc.Parse ("./Theme/gtk-2.0/gtkrc");
Where gtkrc is my theme. Without specifying the default theme name, nothing worked. I didnβt set up my theme very far, so I canβt understand if it solves every problem.
source share