summaryrefslogtreecommitdiff
path: root/src/color.hh
AgeCommit message (Collapse)Author
2023-10-25Remove redundant comparison operatorsMaxime Coste
Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist.
2022-02-12Make Color::validate_alpha() a constexpr function.Tim Allen
We call it from a constexpr constructor, so it needs to be constexpr itself. Fixes #4544.
2020-05-02Add support for alpha channel in colorsMaxime Coste
This makes it easier to define faces that lighten/darken whatever they apply on.
2018-05-27Refactor option_from_string to return directly the option valueMaxime Coste
2017-10-24Rename br* colors to bright-*Net
2017-10-22Support bright named colorsNet
2017-10-20Constexprify various hash functionsMaxime Coste
2017-09-12Rename some string conversion function to the common 'to_string'Maxime Coste
2015-04-25Move Colors enum class as NamedColor enum inside Color structMaxime Coste
2015-03-21Fix Color constructor not constexprMaxime Coste
2015-03-20constexprify Color (in)equality operatorMaxime Coste
2015-02-10Do not hash rgb values for non rgb colorsMaxime Coste
2014-12-16Rework hashing, use a more extensible framework similar to n3876 proposalMaxime Coste
std::hash specialization is a pain to work with, stop using that, and just specialize a 'size_t hash_value(const T&)' free function.
2014-11-12Cleanup includesMaxime Coste
2014-08-19Do not allow using color names as face namesMaxime Coste
2014-07-11Rename ColorPair to Face and ColorRegistry to FaceRegistryMaxime Coste
Face also stores the attributes
2013-07-26Color,ColorPair: always pass by copyMaxime Coste
2013-05-13support specifying colors with RGB componentsMaxime Coste
2013-03-29Add support for tuple Options, implement LineAndFlag using thatMaxime Coste
2013-03-25extract parse_color to color.cc as str_to_color, and add color_to_strMaxime Coste
2013-03-06Use a ColorPair in DisplayAtoms instead of separate fg/bg colorsMaxime Coste
2012-10-23use Colors and Attributes are charMaxime Coste
2012-09-17Add a ColorRegistry class responsible of color parsing and supporting aliasesMaxime Coste
colalias command permits to define names for color pairs