mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Tweak rainbows slightly
This commit is contained in:
parent
8a300f7333
commit
f401ed16ac
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ utils::markdownToHtml(const QString &text, bool rainbowify)
|
|||
// Use colors as described here:
|
||||
// https://shark.comfsm.fm/~dleeling/cis/hsl_rainbow.html
|
||||
auto color =
|
||||
QColor::fromHslF((charIdx - 1.0) / textLen * (5. / 6.), 1.0, 0.5);
|
||||
QColor::fromHslF((charIdx - 1.0) / textLen * (5. / 6.), 0.9, 0.5);
|
||||
// format color for HTML
|
||||
auto colorString = color.name(QColor::NameFormat::HexRgb);
|
||||
// create HTML element for current char
|
||||
|
|
Loading…
Reference in a new issue