From 15c7630e10f0c0e8b6626aecb0025e33e75bfeda Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 1 Apr 2022 17:11:50 +0200 Subject: [PATCH] Improve message readability on different themes --- src/Utils.cpp | 3 ++- src/timeline/InputBar.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 0ac37d8e..223fdae7 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -531,7 +531,8 @@ utils::markdownToHtml(const QString &text, bool rainbowify) // get correct color for char index // Use colors as described here: // https://shark.comfsm.fm/~dleeling/cis/hsl_rainbow.html - auto color = QColor::fromHslF((charIdx - 1.0) / textLen * (5. / 6.), 0.9, 0.5); + // auto color = QColor::fromHslF((charIdx - 1.0) / textLen * (5. / 6.), 0.9, 0.5); + auto color = QColor::fromHslF((charIdx - 1.0) / textLen * (2.), 0.9, 0.999); // format color for HTML auto colorString = color.name(QColor::NameFormat::HexRgb); // create HTML element for current char diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index bb2e4acd..86865423 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -316,7 +316,8 @@ InputBar::send() command(name, args); } } else { - message(text()); + // message(text()); + message(text(), MarkdownOverride::ON, true); } if (!wasEdit) {