GUI tweaks


Forum: DSL Tips and Tricks
Topic: GUI tweaks
started by: mikshaw

Posted by mikshaw on Aug. 15 2005,19:13
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"

Posted by Noob on Aug. 15 2005,21:09
Any screenshots we can see?
Posted by mikshaw on Aug. 15 2005,22:31
k....
< http://img176.imageshack.us/my.php?image=colorstep5qz.jpg >

Posted by Noob on Aug. 18 2005,19:42
Nice job :)
Posted by adraker on Aug. 20 2005,02:11
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!

:)

Posted by dare2dreamer on Aug. 22 2005,19:42
Since DSL is working towards having its own theme, wouldn't it be a good idea to include this, or osme modified version of it, in the default distribution.

I'm not sure if I'm a huge fan of Elephanter or not, but as long as that's what the DSL team has settled on it makes sense to make as much of the default desktop match as possible.

Posted by mikshaw on Jan. 02 2006,22:36
Simple Cursor Change

While i haven't succeeded in using any of the more complex xfree cursors in DSL's Xvesa server (yet), there is a way to make a quick change to the cursor displayed on the root window using the default cursor file.  Most of them are not very usable as a generic cursor, but i sometimes like to use a heart or circle once in a while.  It's also useful if you run a minimal window manager that doesn't give you anything but the big ol' X

You can set the root cursor with this command:
Code Sample
xsetroot -cursor_name <name>

where <name> is a name from the list below.
Fluxbox and JWM automatically set the root cursor, so you will
need to run the command manually after the windowmanager loads.

X_cursor
arrow
based_arrow_down
based_arrow_up
boat
bogosity
bottom_left_corner
bottom_right_corner
bottom_side
bottom_tee
box_spiral
center_ptr
circle
clock
coffee_mug
cross
cross_reverse
crosshair
diamond_cross
dot
dotbox
double_arrow
draft_large
draft_small
draped_box
exchange
fleur
gobbler
gumby
hand1
hand2
heart
icon
iron_cross
left_ptr
left_side
left_tee
leftbutton
ll_angle
lr_angle
man
middlebutton
mouse
pencil
pirate
plus
question_arrow
right_ptr
right_side
right_tee
rightbutton
rtl_logo
sailboat
sb_down_arrow
sb_h_double_arrow
sb_left_arrow
sb_right_arrow
sb_up_arrow
sb_v_double_arrow
shuttle
sizing
spider
spraycan
star
target
tcross
top_left_arrow
top_left_corner
top_right_corner
top_side
top_tee
trek
ul_angle
umbrella
ur_angle
watch
xterm

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.