Re: how I write GTK+ theme?



On Tue, Jan 20, 2009 at 7:27 PM, Benjamin Berg
<benjamin sipsolutions net> wrote:
> Moving discussion to gnome-themes-list.
>
> On Mon, 2009-01-19 at 22:09 +0200, Natan Yellin wrote:

[...]

>>
>>         That is correct. You won't find much documentation, but you
>>         could start
>>         with a look at
>>         http://live.gnome.org/GnomeArt/Tutorials/GtkThemes. Other
>>         than that I would suggest looking into the GtkStyle/GtkRcStyle
>>         documentation and heading around to #gnome-art.
>> I'm completely ignorant with regard to theming, but why can't this be
>> done with a traditional GtkEngine? (Isn't the CSS engine customizable
>> enough to make this work?)
>
> No engine is (and I expect never will be) able to do this. The reason is
> that none of these engines is designed to output something that is
> random. With napkinlaf the UI could look differently every time you
> start an application.

I have some crude plans to support native appearance in the CSS engine
somwhat related to [1]. This would be done through hooks, so the
respective native rendering functions (Win32/OSX/...) could be used
together with CSS-specified settings.

Being rather busy at $day_job there are no immediate plans to
implement this, but it could be used for "napkinleaf" custom
rendering, leveraging the theming infrastructure that the CSS engine
already provides (interfacing with gtk, system colors infrastructure,
widget matching, engine boilerplate code ...).

Let me know if there is interest, I'd be happy to help out or at least
discuss this in detail.

Optionally send a blizzard here, so I can't go skiing on the weekends.

[1] http://www.w3.org/TR/css3-ui/#system

- Rob


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]