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

pixmap_path "/usr/share/usernet/1.0.8/:./"

style "modem"
{
  bg_pixmap[NORMAL] = "modem.xpm"
  bg_pixmap[ACTIVE] = "modem.xpm"
  bg_pixmap[PRELIGHT] = "modem.xpm"
  bg_pixmap[SELECTED] = "modem.xpm"
  bg_pixmap[INSENSITIVE] = "modem.xpm"
}

style "net"
{
  bg_pixmap[NORMAL] = "net.xpm"
  bg_pixmap[ACTIVE] = "net.xpm"
  bg_pixmap[PRELIGHT] = "net.xpm"
  bg_pixmap[SELECTED] = "net.xpm"
  bg_pixmap[INSENSITIVE] = "net.xpm"
}

style "green"
{
  bg[NORMAL] = { 0, 60000, 0 }
  bg[ACTIVE] = { 0, 50000, 0 }
  bg[PRELIGHT] = { 0, 65535, 0 }
  bg[SELECTED] = { 0, 60000, 0 }
  bg[INSENSITIVE] = { 0, 40000, 0 }
}

style "yellow"
{
  bg[NORMAL] = { 60000, 60000, 0 }
  bg[ACTIVE] = { 50000, 50000, 0 }
  bg[PRELIGHT] = { 65535, 65535, 0 }
  bg[SELECTED] = { 60000, 60000, 0 }
  bg[INSENSITIVE] = { 40000, 40000, 0 }
}

style "red"
{
  bg[NORMAL] = { 60000, 0, 0 }
  bg[ACTIVE] = { 50000, 0, 0 }
  bg[PRELIGHT] = { 65535, 0, 0 }
  bg[SELECTED] = { 60000, 0, 0 }
  bg[INSENSITIVE] = { 40000, 0, 0 }
}

widget "ppp*" style "modem"
widget "slip*" style "modem"
widget "plip*" style "net"
widget "eth*" style "net"
widget "tr*" style "net"
widget "arc*" style "net"
widget "atp*" style "net"

widget "*.interface_up" style "green"
widget "*.interface_changing" style "yellow"
widget "*.interface_down" style "red"
