The command-line option -rc

The appearance of cgtkcalc can be changed by specifying a gtk+ rc file although
it is currently impossible to change the color of a specific button.

An example of gtk+ rc file is as follows:

# a Gtk+ RC file for cgtkcalc.
# This file can be loaded by:
# $ cgtkcalc -rc example.gtkrc

# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

style "default"
{
  font = "-*-lucida-medium-r-normal-*-10-*-*-*-*-*-iso8859-1"

# base, text, bg, fg are possible
bg[NORMAL] = { 0.25, 0.25, 0.27 }
bg[SELECTED] = { 0.22, 0.25, 0.26 }
bg[INSENSITIVE] = { 0.25, 0.25, 0.27 }
bg[ACTIVE] = { 0.22, 0.25, 0.26 }
bg[PRELIGHT] = { 0.25, 0.25, 0.27 }

fg[NORMAL] = { 0.99, 0.99, 0.99 }
fg[SELECTED] = { 0.99, 0.99, 0.99 }
fg[INSENSITIVE] = { 0.99, 0.99, 0.99 }
fg[ACTIVE] = { 0.33, 0.72, 0.7 }
fg[PRELIGHT] = { 0.5, 0.71, 0.7 }

text[NORMAL] = { 0.99, 0.99, 0.99 }
text[SELECTED] = { 0.8, 0.8, 0.99 }
text[INSENSITIVE] = { 0.99, 0.99, 0.99 }
text[ACTIVE] = { 0.99, 0.99, 0.99 }
text[PRELIGHT] = { 0.99, 0.99, 0.99 }

}

style "toggle" = "default"
{
bg[SELECTED] = { 0.15, 0.15, 0.43 }
bg[ACTIVE] = { 0.15, 0.15, 0.43 }
}

widget_class "*" style "default"
widget_class "*ToggleButton*" style "toggle"





image1.png


Fig: The appearance when a rc file shown left is specified.


main page