DSL Tips and Tricks :: GUI tweaks



gtk1 theme for Elefanter

I've been using a tweaked 'ColorStep' theme in Suse for the longest time, and just recently realized how good it looks with the Elefanter Fluxbox style in DSL.  Customizes the look of Gtk1 apps such as Emelfm and Firefox.
I couldn't find this particular modification online, so I'll just post the contents here.
Install anywhere, and point /home/dsl/.gtkrc to it like so:
Code Sample
include "/path/to/the/file"
(or just save this theme as /home/dsl/.gtkrc...works either way)

Written by Ullrich Hafner <hafner-at-bigfoot-dot-de>
Modified by Juan Pablo Romero <juan_pablo_2-at-yahoo-dot-com>
Modified by Pierre Baillargeon <pierreba-at-globetrotter-dot-net>
Code Sample
# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

# testgtkrc2 sets all the buttons in the main window to blue by default
#include "testgtkrc2"

#module_path ".:/home/raster/themes"

pixmap_path ".:/home/raster/themes"

style "default"
{
 font = "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*"
 bg[NORMAL] = { 0.74, 0.74, 0.74 }
 fg[NORMAL] = { 0, 0, 0 }
 bg[PRELIGHT] = { 0.95, 0.76, 0.25 }
 fg[PRELIGHT] = { 0, 0, 0 }
 bg[SELECTED] = { 0.95, 0.76, 0.25 }
 fg[SELECTED] = { 0, 0, 0 }
 bg[ACTIVE] = { 0.74, 0.67, 0.60 }
 fg[ACTIVE] = { 0, 0, 0 }
 engine "colorstep"
 {
 }
}

style "list"
{
 bg[ACTIVE] = { 0.74, 0.74, 0.74 }
 bg[NORMAL] = { 1, 1, 1 }
 bg[PRELIGHT] = { 0.95, 0.76, 0.25 }
 bg[SELECTED] = { 0.95, 0.76, 0.25 }
}

widget_class "GtkCTree" style "list"
widget_class "GtkCList" style "list"

style "window"
{
#  bg_pixmap[NORMAL] = "warning.xpm"
}

style "scale"
{
 base[ACTIVE] = { 0.50, 0.43, 0.36 }
 bg[ACTIVE] = { 0.50, 0.43, 0.36 }
 base[NORMAL] = { 0.74, 0.67, 0.60 }
 bg[NORMAL] = { 0.74, 0.67, 0.60 }
 base[PRELIGHT] = { 0.95, 0.76, 0.25 }
 bg[PRELIGHT] = { 0.95, 0.76, 0.25 }
 base[SELECTED] = { 0.95, 0.76, 0.25 }
 bg[SELECTED] = { 0.95, 0.76, 0.25 }
 fg[ACTIVE] = { 0.50, 0.43, 0.36 }
 fg[PRELIGHT] = { 0.95, 0.76, 0.25 }
 fg[SELECTED] = { 0.95, 0.76, 0.25 }
}

style "button"
{
 bg[NORMAL] = { 0.74, 0.67, 0.60 }
 bg[PRELIGHT] = { 0.95, 0.76, 0.25 }
 bg[ACTIVE] = { 0.95, 0.76, 0.25 }
 bg[SELECTED] = { 0.95, 0.76, 0.25 }
}

style "toggle_button" = "button"
{
}

style "radio_button" = "toggle_button"
{
}

style "entry"
{
 bg[SELECTED] = { 0.95, 0.76, 0.25 }
 fg[SELECTED] = { 0.31, 0.31, 0.13 }
}

style "slider" = "scale"
{
}

style "tooltips"
{
 bg[NORMAL] = { 0.93, 0.93, 0.78 }
 fg[NORMAL] = { 0, 0, 0 }
}


style "ruler"
{
#  font = '-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*'
}

style "curve"
{
}

# override testgtk2, introduce the green color in the button list
style 'button_list' = 'button'
{
}

widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"

# common default
class "GtkWidget" style "default"
class "GtkText" style "entry"

class "GtkScrollbar" style "slider"
widget_class "GtkWindow" style "window"
widget_class "GtkDialog" style "window"
widget_class "GtkFileSelection" style "window"
widget_class "*Gtk*Scale" style "scale"
widget_class "*Gtk*Slider" style "slider"
widget_class "*GtkCheckButton*" style "toggle_button"
widget_class "*GtkRadioButton*" style "radio_button"
widget_class "*GtkButton*" style "button"
widget_class "*Ruler" style "ruler"
widget_class "*GtkEntry" style "entry"
widget "*GtkCurve" style "curve"
widget "gtk-tooltips*" style "tooltips"

Any screenshots we can see?
k....
http://img176.imageshack.us/my.php?image=colorstep5qz.jpg

Nice job :)
Yes, thats a great match for Elephanter.
I only just got around to trying it, it also
looks good with a Fluxbox theme called " beOSbox ",
your basic blue bg with yellow toolbar, docks, etc.
Good one!

:)

Next Page...
original here.