[Gtk-sharp-list] Linux GTK themes on Windows

pinggi at centrum.cz pinggi at centrum.cz
Tue Aug 16 18:44:42 EDT 2011

Well, I downloaded Clearlooks-DarkLime style from http://art.gnome.org/themes/gtk2/
Then extracted files to Clearlooks-DarkLime folder.
Run application without changed styled and second time with changed styled (it loaded file Clearlooks-DarkLimegtk-2.0gtkrc).
You can look at it here:
Button and scrollbar are not changed, only background color changed.
It really doesn't look like Clearlooks-DarkLime controls preview on http://art.gnome.org/themes/gtk2/
Is the style bad or what I did wrong?

> From: "Andy York" 
> To: 
> Date: 13.08.2011 16:17
> Subject: Re: [Gtk-sharp-list] Linux GTK themes on Windows

Here is how I did it, for Gtk and KDE programming it is considered bad 
form to alter the users theme but the Windows theme is often not too 
good looking. It is worth noting that if you compile the app with VS or 
use the Windows .NET library for compiling it will take on the windows 
theme instead of the default Gtk theme.

// this is a Windows only option that specifies the theme
// the default Gtk themes for Windows is is just not something I feel can
// be relied on at the moment
  if (!string.IsNullOrEmpty(strPathToThemeFile))
     Gtk.Rc.Parse (strPathToThemeFile);
MainWindow win = new MainWindow ();
  win.Show ();
Application.Run ();

Hope this helps

On 8/13/2011 9:31 AM, pinggi at centrum.cz wrote:
> Hi, I'm using mono with GTK# + monodevelop on Windows platform.
> I want to create application that would look the same like it looks on 
> Ubuntu with Gnome.
> I like dark theme. However, I'm not able to change GTK# theme fully on 
> Windows.
> I downloaded Clearlooks-DarkLime theme from 
> http://art.gnome.org/themes/gtk2.
> It contains gtkrc file. That file is loaded by following code:
> string fileName = @"Clearlooks-DarkLimegtk-2.0gtkrc";
> Gtk.Rc.AddDefaultFile(fileName);
> Gtk.Rc.Parse(fileName);
> It works but not fully. Some controls don't look the same like on the 
> picture on control themes section on art.gnome.org. TextView 
> background and text inside is changed to gray shade according that 
> style, but button and scrollbar are not changed.
> Is that bug of gtk/mono? Or wrongly written theme file? Do you know 
> about some working one? I'd like to use dark theme for my app on Linux 
> and Windows and want it to be look exactly the same on both.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20110817/cd9d5e5c/attachment.html 

More information about the Gtk-sharp-list mailing list