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

Re: gtk: is there a way of setting the `light/dark' style fields from a gtkrc file?



Jeff Waugh <jdub@perkypants.org> writes:
> > [I.e., does the older release do a better job of rendering dark colors?]
> 
> Seems to, a friend used black and purple and it didn't look like arse.

Hmm, I grabbed your version of gtk-engines-icegradient (0.2-2) and made
my own `DeepIceGradient-dark' theme by copying your `DeepIceGradient'
theme and substituting my own colors.  Unfortunately, it still looks
like arse.  :-(  I guess gtk's highlight-calculation code can cope with
the colors your friend uses, but not mine...

Here's my gtkrc file, for references:

# Edit these colors and fonts however you like.
style "default"
{
  fg[NORMAL]       = "#E5E5E5"
  fg[ACTIVE]       = "#E5E5E5"
  fg[PRELIGHT]     = "#E5E5E5"
  fg[SELECTED]     = "#FFFFFF"	# "#336699"
  fg[INSENSITIVE]  = "#545454"	# "#747474"

#  light[NORMAL]       = "#808080"
#  light[ACTIVE]       = "#808080"
#  light[PRELIGHT]     = "#808080"
#  light[SELECTED]     = "#808080"
#  light[INSENSITIVE]  = "#808080"

  bg[NORMAL]       = "#404040"	# "#D3D3DD"
  bg[ACTIVE]       = "#505050"	# "#C1C1CC"
  bg[PRELIGHT]     = "#484848"	# "#E5E5F7"
  bg[SELECTED]     = "#606060"	# "#D3D3FF"
  bg[INSENSITIVE]  = "#3C3C3C"	# "#D3D3DD"

  base[NORMAL]     = "#484848"	# "#E5E5F7"
  base[ACTIVE]     = "#3C3C3C"	# "#D3D3DD"
  base[PRELIGHT]   = "#3F0000"	# "#FF0000"
  base[SELECTED]   = "#3F0000"	# "#FF0000"
  base[INSENSITIVE]= "#3C3C3C"	# "#D3D3DD"

  text[INSENSITIVE]= "#3C3C3C"	# "#D3D3DD"

  # helvetica 120 is default, so it's not really needed here..
  #font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"
  engine "icegradient"
  {
    # You want the // on the handleboxes?
    handlebox_marks = TRUE
    # Do you want the // marks on the scrollbar handle?
    scrollbar_marks = TRUE
    # A single / on the scrollbar buttons, perhaps?
    scroll_button_marks = TRUE
    # Do you want the scrollbar handles rectangular or a bit shaped?
    rect_scrollbar = TRUE
  }
}

widget "*" style "default"
Thanks,

-Miles

-- 
Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche

Reply to: