summaryrefslogtreecommitdiff
path: root/src/face.hh
AgeCommit message (Collapse)Author
2024-08-04Add support for double underlineAdriĆ  Arrufat
2023-10-25Default comparison operators that can beMaxime Coste
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-07-13Re-work line trimming to fix issues with column highightersMaxime Coste
Instead of triming only buffer ranges, add a trim_from method to display line to keep the initial N columns, we know how many columns are used by non-trimable widgets in DisplaySetup::widget_columns so we can just pass this. Also restore the previous logic for face merging Fixes #4670
2022-07-12Fix past-the-eol column highlighter getting highlighted as buffer rangeMaxime Coste
Make the column highlighter faces final, and change final logic to give precedence to the base face when both the base and new face are final. Fixes #4669
2021-09-07Add support for curly underline and separate underline colorMaxime Coste
Add support for a third color in face definition that controls the underline and a 'c' attribute for curly underline (that takes precedence over 'u' if both are specified) Allow empty colors to mean default, so that `,,red+u` means the same as `default,default,red+u` Fixes #4138
2021-07-12src: Support strikethrough facesJason Felice
2020-07-31Fix alpha of merged facesMaxime Coste
2020-05-02Add support for alpha channel in colorsMaxime Coste
This makes it easier to define faces that lighten/darken whatever they apply on.
2019-04-18Small code cleanup in Face struct definitionMaxime Coste
2018-09-24Misc fixesOlivier Perret
2018-09-23Replace the `Exclusive` face attribute with `Final`Maxime Coste
Final is more granular, it consists of FinalFg (f), FinalBg (g) and FinalAttr (a) which control if a face's fg, bg, or attributes fully overwrite the previous face (instead of merging) and if following faces apply on top of this face or not. Fixes #2388 if the Whitespace face has the FinalFg flag.
2018-04-10Redraw window when the face definition changedMaxime Coste
Hash the current face state and store that hash to check for changes.
2017-03-15Migrate WithBitOps template specialization to with_bit_ops functionMaxime Coste
This way we dont depend on knowing the base template to enable bit ops on an enum type.
2015-10-23Add an exclusive attribute that overrides existing faceMaxime Coste
2015-09-27Add support for italic text attributeMaxime Coste
2015-08-23Change flag lines highlighter to use faces instead of colorsMaxime Coste
Fixes #130
2015-04-25Move Colors enum class as NamedColor enum inside Color structMaxime Coste
2015-03-21constexprify FaceMaxime Coste
2014-12-23Remove trailing blank linesMaxime Coste
2014-11-12Use general flags utility for Face AttributeMaxime Coste
2014-07-15Use strongly typed enum for Face Attribute, add DimMaxime Coste
2014-07-11Rename ColorPair to Face and ColorRegistry to FaceRegistryMaxime Coste
Face also stores the attributes