At this point I would suggest opening the rc file and seeing what might be the issue there. I'm guessing that there are certain things not implemented on windows or perhaps an image that is out of place. I'm afraid from this point you will have to "pick away" at the issue. The details can be frustrating when you are trying to change styles in a manner that is not supported.

Sorry I can't be more specific at the detail level.


On 8/16/2011 6:44 PM, [email protected] wrote:

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:

http://img221.imageshack.us/img221/1411/stylesdp.png

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" <[email protected]>
> To: <[email protected]>
> 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
SpoodyGoon


On 8/13/2011 9:31 AM, [email protected] 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>



_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list


No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 10.0.1392 / Virus Database: 1520/3836 - Release Date: 08/15/11


_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to