Add colors.

+ example.
This commit is contained in:
Arthur Sonzogni
2018-10-12 09:23:37 +02:00
parent 711b71688e
commit 1a4b2c98b2
17 changed files with 234 additions and 64 deletions

View File

@@ -1,6 +1,7 @@
#ifndef FTXUI_DOM_ELEMENTS_HPP
#define FTXUI_DOM_ELEMENTS_HPP
#include "ftxui/color.hpp"
#include "ftxui/dom/node.hpp"
namespace ftxui {
@@ -27,6 +28,8 @@ Element bold(Element);
Element dim(Element);
Element inverted(Element);
Element underlined(Element);
Element color(Color, Element);
Element bgcolor(Color, Element);
// --- Decorator ---
Element hcenter(Element);