The only way to make a decent theme in gtk 1.2 is with another engine. 
Otherwise all you are doing is changing colors. 

In gtk2 the  built in engine is slightly better looking, but in either case, 
its almost a given you need another engine.

This is why gtk1.2 themes don't seem to get changed with the gnome theme 
manager often - the theme manager DOES in fact change the theme, but often the 
theme doesn't have a gtk 1.2 engine, so what you get is the default ugly gtk 
1.2 engine, perhaps with different colors.

You could potentially build a gtk 1.2 engine into lazarus itself, and make a 
decent looking theme, but I don't know I would advise it. Generally it is best 
simply to make sure that you have themes which include both gtk 1.2 and gtk2 
support. Right now this means none of the major themes aka Clearlooks since 
clearlooks doesn't have a gtk 1.2 engine at all. 

Many if not most Smooth, ThinIce, and Mist Themes Will apply to everything, so 
long as the gtk1 versions of the engines are installed - they are often 
available, but since no longer maintained, more and more distros are dropping 
them from being installed by default.

So While you could add a support to change the theme file for just gtk 1.2, I 
don't think it would address the problem - most distros are getting rid of all 
gtk 1.2 support period. Including versions of major engines and default themes, 
even when available.

Andrew 

-----Original Message-----
>From: Mattias Gaertner <[EMAIL PROTECTED]>
>Sent: May 16, 2006 2:22 PM
>To: [email protected]
>Subject: Re: [lazarus] GTK/Linux vs QT/Linux Lazarus Support
>
>On Tue, 16 May 2006 13:48:46 -0400
>Tony Maro <[EMAIL PROTECTED]> wrote:
>
>> Alain Michaud wrote:
>> > - Mandriva works very very well with Lazrus.  On other platforms you get
>> > the ugly "motif" like theme. 
>> >
>> > It seems that the "gnome-control-center" is not connected to the theme
>> > that lazarus uses. This has to do with GTK-1 GTK-2 difference, I think.
>> > Those who are skilled, can play with some hidden files and configure the
>> > theme in GTK-1 and get their Lazarus very clear in Suse for example.
>> > (see the forum for a list of tricks)
>> >
>> > One solution to improve the situation (apart from switching to GKT2)
>> > would be to have a small utility program that would come with the
>> > lazarus package in order to set some configuration file. I don't know
>> > how, but may be that would not be too difficult to write, once someone
>> > knows which file is wrong. 
>> If someone will pin down what would need done, I would even throw it in
>> a non-visual component so that it could be embedded within distributed
>> applications - you wouldn't want to just do it by default, but give the
>> user the option in the settings dialog or something.
>
>Provide a nice theme. Preferable one without needing gtk-engines. 
>Either install the theme global: /usr/share/themes/lazarus/lazarus.gtkrc
>or with the project: /path/to/application/theme.gtkrc.
>
>In .lpr file:
>
>...
>uses
>  Interfaces, // this includes the LCL widgetset
>  Forms, Unit1,
>  {$IFDEF LclGtk}
>  , gtkint, interfacebase
>  {$ENDIF}
>  ;
>
>begin
>  {$IFDEF LclGtk}
>  (WidgetSet as
>TGTKWidgetSet).RCFilename:='/usr/share/themes/lazarus/lazarus.gtkrc';
>  {$ENDIF}
>  Application.Initialize;
>  ...
>
>Mattias
>
>_________________________________________________________________
>     To unsubscribe: mail [EMAIL PROTECTED] with
>                "unsubscribe" as the Subject
>   archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to