2020-04-20 03:00:37 +08:00
|
|
|
// Copyright 2020 Arthur Sonzogni. All rights reserved.
|
|
|
|
// Use of this source code is governed by the MIT license that can be found in
|
|
|
|
// the LICENSE file.
|
|
|
|
|
2019-01-07 00:10:35 +08:00
|
|
|
#ifndef FTXUI_SCREEN_COLOR
|
|
|
|
#define FTXUI_SCREEN_COLOR
|
2018-10-12 15:23:37 +08:00
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
2019-01-12 22:00:08 +08:00
|
|
|
namespace ftxui {
|
2018-10-12 15:23:37 +08:00
|
|
|
|
2020-05-25 07:34:13 +08:00
|
|
|
/// @brief The set of supported terminal colors.
|
|
|
|
/// @ingroup screen
|
2018-10-12 15:23:37 +08:00
|
|
|
enum class Color : uint8_t {
|
|
|
|
// --- Transparent -----
|
|
|
|
Default = 39,
|
|
|
|
|
|
|
|
// --- Grayscale -----
|
|
|
|
Black = 30,
|
|
|
|
GrayDark = 90,
|
|
|
|
GrayLight = 37,
|
|
|
|
White = 97,
|
|
|
|
|
|
|
|
// --- Hue -----
|
|
|
|
Blue = 34,
|
|
|
|
BlueLight = 94,
|
|
|
|
|
|
|
|
Cyan = 36,
|
|
|
|
CyanLight = 96,
|
|
|
|
|
|
|
|
Green = 32,
|
|
|
|
GreenLight = 92,
|
|
|
|
|
|
|
|
Magenta = 35,
|
|
|
|
MagentaLight = 95,
|
|
|
|
|
|
|
|
Red = 31,
|
|
|
|
RedLight = 91,
|
|
|
|
|
|
|
|
Yellow = 33,
|
|
|
|
YellowLight = 93,
|
|
|
|
};
|
|
|
|
|
2020-03-24 04:26:00 +08:00
|
|
|
} // namespace ftxui
|
2018-10-12 15:23:37 +08:00
|
|
|
|
|
|
|
#endif /* end of include guard: FTXUI_COLOR_H_ */
|