Changeset 963 for trunk/lib/Colors.h


Ignore:
Timestamp:
Dec 9, 2009, 3:58:28 AM (12 years ago)
Author:
Peter Johansson
Message:

fixes #420 - use same color in blame output as in plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Colors.h

    r944 r963  
    4343
    4444    /**
     45       Same as get_color(4) but color is returned as a hexadecimal
     46       string rather than in rgb.
     47
     48       \return color string associated with label
     49     */
     50    const std::string& color_str(const std::string& label);
     51
     52    /**
    4553       \brief Get RGB color for \a label
    4654
     
    7482      std::string label;
    7583      unsigned char r,g,b;
     84      std::string str;
    7685    };
     86
     87    const color& get_color(const std::string& label);
    7788
    7889    std::map<std::string, std::vector<color>::iterator> author_map_;
Note: See TracChangeset for help on using the changeset viewer.