% lyngby_ui_option     - Option/setup for user interface
%
%       script
%
%       Global: UI_COLOR_BACK      Background color of figure
%               UI_COLOR_BACK2     Another background color of figure
%               UI_COLOR_FRONT     Front color (text)
%               UI_COLOR_CONTROL   Background color of control
%
%       This function 'Globalizes' the variables and initialize if
%       they are not already defined
%
%       See also: lyngby_ui_main

% cvs : $Id: lyngby_ui_option.m,v 1.10 2000/03/20 15:02:20 mgl Exp $
%       $Revision: 1.10 $    

    global UI_COLOR_BACK UI_COLOR_BACK2 UI_COLOR_FRONT ...
	UI_COLOR_CONTROL UI_COLORBAR UI_IMAGECOLORMAP UI_FONT_SIZE ...
	UI_TOOLTIPS ...
	UI_COLOUR_WINBACK UI_COLOUR_FRAME UI_COLOUR_STATUS UI_COLOUR_BUTTON ...
	UI_COLOUR_FRAME2 UI_COLOUR_AXES_BACK
    
    if (length(UI_COLOR_BACK) ~= 3)
      UI_COLOR_BACK = [ 0.5 0.8 1];
      % UI_COLOR_BACK	        = [0.7 0.7 0.7];
    end
    if (length(UI_COLOR_BACK2) ~= 3)
      UI_COLOR_BACK2  = [0.1 0.5 0.8];
      % UI_COLOR_BACK2	= [0.5 0.5 0.5];
    end
    if (length(UI_COLOR_FRONT) ~= 3)
      UI_COLOR_FRONT = [ 0.2 0 0.2];
      % UI_COLOR_FRONT	= [0 0 0];
    end
    if (length(UI_COLOR_CONTROL) ~= 3)
      UI_COLOR_CONTROL = [1 0.8 0.5];
      % UI_COLOR_CONTROL      = [0.7 0.7 0.7];
    end
    if (length(UI_COLORBAR) ~= 1)
      UI_COLORBAR           = 0;
    end
    if (length(UI_IMAGECOLORMAP) < 64)
      UI_IMAGECOLORMAP      = jet(64);
    end
    
    UI_TOOLTIPS = 0;
    % 1 = on; 0 = off
    
    if (length(UI_COLOUR_WINBACK) ~= 3)
      UI_COLOUR_WINBACK = [ 0 0.3119 0.6930 ];
    end
    if (length(UI_COLOUR_FRAME) ~= 3)
      UI_COLOUR_FRAME = [ 0.3826 0.6648 0.9470 ];
    end
    if (length(UI_COLOUR_STATUS) ~= 3)
      UI_COLOUR_STATUS = [ 0.1822 0.5631 0.944 ];
    end
    if (length(UI_COLOUR_BUTTON) ~= 3)
      UI_COLOUR_BUTTON = [ 0.9390 0.8469 0.5934 ];
    end
    if (length(UI_COLOUR_FRAME2) ~= 3)
      UI_COLOUR_FRAME2 = [ 0.2317 0.4106 0.9470 ];
    end
    if (length(UI_COLOUR_AXES_BACK) ~= 3)
      UI_COLOUR_AXES_BACK = [ 0.1909 0.6030 1 ];
    end











