diff options
| author | 2025-12-22 21:45:47 +0100 | |
|---|---|---|
| committer | 2025-12-22 21:46:59 +0100 | |
| commit | 241ab15be837b681f3cdfc555ec2e8d2638f759f (patch) | |
| tree | 3399a11acb3f50b4ed05a551551c2c6feeb4b4e5 /src/bin/cli/displaytoolbox.h | |
| parent | 84c82d205fea95c5cdea1a3ba084f9fa74417649 (diff) | |
| download | OneRoll-241ab15be837b681f3cdfc555ec2e8d2638f759f.tar.gz OneRoll-241ab15be837b681f3cdfc555ec2e8d2638f759f.zip | |
[various fixes]Cli improvement of managing color.
Diffstat (limited to 'src/bin/cli/displaytoolbox.h')
| -rw-r--r-- | src/bin/cli/displaytoolbox.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/cli/displaytoolbox.h b/src/bin/cli/displaytoolbox.h index 5a22b0f..2b0b556 100644 --- a/src/bin/cli/displaytoolbox.h +++ b/src/bin/cli/displaytoolbox.h @@ -5,6 +5,7 @@ #include <QString> #include "diceparser/diceparser.h" +#include "rang.hpp" class DisplayToolBox { @@ -20,7 +21,7 @@ public: #ifdef PAINTER_OP static QString makeImage(QByteArray svgCode); #endif - static QString colorToIntCode(QString str); + static rang::fg colorToIntCode(QString str); static QString colorToTermCode(QString str); static QString diceToSvg(QJsonArray array, bool withColor, bool allSameColor, bool allSameFaceCount); static QString diceResultToString(QJsonObject val, Output type, bool hasColor); |