mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-03-02 00:38:38 +00:00
39 lines
653 B
C++
39 lines
653 B
C++
#ifndef COLOR_PALETTE_H
|
|
#define COLOR_PALETTE_H
|
|
|
|
#include <QtCore/QVector>
|
|
|
|
#include <QtGui/QColor>
|
|
|
|
class ColorPalette
|
|
{
|
|
public:
|
|
ColorPalette();
|
|
|
|
|
|
enum Color {
|
|
Black,
|
|
Red,
|
|
Green,
|
|
Yellow,
|
|
Blue,
|
|
Magenta,
|
|
Cyan,
|
|
White,
|
|
DefaultForground,
|
|
DefaultBackground,
|
|
numberOfColors
|
|
};
|
|
|
|
QColor color(Color color, bool bold) const;
|
|
QColor normalColor(Color color) const;
|
|
QColor lightColor(Color color) const;
|
|
|
|
private:
|
|
QVector<QColor> m_normalColors;
|
|
QVector<QColor> m_lightColors;
|
|
QVector<QColor> m_intenseColors;
|
|
};
|
|
|
|
#endif // COLOR_PALETTE_H
|