mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Color: Readied for when Lexer enters common
This commit is contained in:
parent
31c145ef9e
commit
459702477d
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
//#include <Lexer.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
|
|
||||||
// uint to string lookup table for Color::_colorize()
|
// uint to string lookup table for Color::_colorize()
|
||||||
|
@ -139,6 +140,8 @@ Color::Color (const std::string& spec)
|
||||||
int index;
|
int index;
|
||||||
for (auto& word : words)
|
for (auto& word : words)
|
||||||
{
|
{
|
||||||
|
// word = Lexer::lowerCase (Lexer::trim (word));
|
||||||
|
|
||||||
if (word == "bold") fg_value |= _COLOR_BOLD;
|
if (word == "bold") fg_value |= _COLOR_BOLD;
|
||||||
else if (word == "bright") bg_value |= _COLOR_BRIGHT;
|
else if (word == "bright") bg_value |= _COLOR_BRIGHT;
|
||||||
else if (word == "underline") fg_value |= _COLOR_UNDERLINE;
|
else if (word == "underline") fg_value |= _COLOR_UNDERLINE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue