Re: gtk theme design
- From: "r ve" <kaas_10 hotmail com>
- To: vantr touchtunes com, andreas brachttal net
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk theme design
- Date: Fri, 07 Mar 2003 22:31:08 +0100
It can be done using the gtkrc.
Open up the Gtk+ documentation and look for the style properties sections at
most pages.
For example, the GtkRange widget (
http://developer.gnome.org/doc/API/2.0/gtk/GtkRange.html ) has the following
style properties:
- arrow-displacement-x
- arrow-displacement-y
- slider-width
- stepper-size
- stepper-spacing
- trough-border
slider-width is what you (Andreas) are probably looking for, you can use it
like this:
style "MyStyle" {
GtkRange::slider-width = 202 # don't try a value like that at home
kids!
# engine "pixmap" yadda yadda
}
class "GtkScrollbar.*" style "MyStyle"
(I'm not sure if it's also possible to use GtkScrollbar::slider-width
instead, I guess it is since GtkScrollbar is 'derived' from GtkRange)
- Rich
From: Tristan Van Berkom
Maybe I dont completely grasp your
question but here's a guess:
you have to specify the size of
your object at object creation time.
i.e. in the xml file generated by glade
not the gtkrc.
HTH,
-Tristan
Andreas Volz wrote:
>
> Hi,
>
> I'm contructing a gtk-theme. Are there any docs for theme designers
> (gtk1.4 and gtk2)? I could read english and german docs.
>
> Is there a better place for gtk-theme design questions?
>
> I've a problem to change the scollbar width. I designed a png with 17
> pixel width but it's displayed to small.
>
> function = BOX
> recolorable = TRUE
> detail = "slider"
> state = PRELIGHT
> file = "scrollbar_vert1.png"
> border = { 2, 2, 3, 3 }
> stretch = TRUE
> orientation = VERTICAL
>
> If I set STRETCH=FALSE then the icon is not shrinked, but cuted to a
> smaller size. What could I do?
>
> thanks
> Andreas
>
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]