mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Improve message readability on different themes
This commit is contained in:
parent
41ee260a5d
commit
15c7630e10
2 changed files with 4 additions and 2 deletions
|
@ -531,7 +531,8 @@ utils::markdownToHtml(const QString &text, bool rainbowify)
|
||||||
// get correct color for char index
|
// get correct color for char index
|
||||||
// Use colors as described here:
|
// Use colors as described here:
|
||||||
// https://shark.comfsm.fm/~dleeling/cis/hsl_rainbow.html
|
// 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
|
// format color for HTML
|
||||||
auto colorString = color.name(QColor::NameFormat::HexRgb);
|
auto colorString = color.name(QColor::NameFormat::HexRgb);
|
||||||
// create HTML element for current char
|
// create HTML element for current char
|
||||||
|
|
|
@ -316,7 +316,8 @@ InputBar::send()
|
||||||
command(name, args);
|
command(name, args);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
message(text());
|
// message(text());
|
||||||
|
message(text(), MarkdownOverride::ON, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wasEdit) {
|
if (!wasEdit) {
|
||||||
|
|
Loading…
Reference in a new issue