From 241ab15be837b681f3cdfc555ec2e8d2638f759f Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Mon, 22 Dec 2025 21:45:47 +0100 Subject: [various fixes]Cli improvement of managing color. --- src/bin/cli/displaytoolbox.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bin/cli/displaytoolbox.h') 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 #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); -- cgit v1.2.3-70-g09d2