Ignore:
Timestamp:
Feb 1, 2014, 1:57:07 AM (11 years ago)
Author:
ldelgass
Message:

bgcolor fixes for nanovis clients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/flowvisviewer.tcl

    r4075 r4163  
    19011901itcl::configbody Rappture::FlowvisViewer::plotbackground {
    19021902    if { [isconnected] } {
    1903         foreach {r g b} [Color2RGB $itk_option(-plotbackground)] break
    1904         #fix this!
    1905         #SendCmd "color background $r $g $b"
     1903        set color $itk_option(-plotbackground)
     1904        set rgb [Color2RGB $color]
     1905        SendCmd "screen bgcolor $rgb"
     1906        $itk_component(legend) configure -background $color
    19061907    }
    19071908}
     
    19121913itcl::configbody Rappture::FlowvisViewer::plotforeground {
    19131914    if { [isconnected] } {
    1914         foreach {r g b} [Color2RGB $itk_option(-plotforeground)] break
    1915         #fix this!
    1916         #SendCmd "color background $r $g $b"
     1915        set color $itk_option(-plotforeground)
     1916        set rgb [Color2RGB $color]
     1917        SendCmd "volume outline color $rgb"
     1918        SendCmd "grid axiscolor $rgb"
     1919        SendCmd "grid linecolor $rgb"
     1920        $itk_component(legend) itemconfigure labels -fill $color
     1921        $itk_component(legend) itemconfigure limits -fill $color
    19171922    }
    19181923}
Note: See TracChangeset for help on using the changeset viewer.